I need CSS Help

by 2 replies
3
I need help I'm using this template (I can't post links but maybe I can pm someone and they can) to create a website
I'm trying to make it so I can put 4 pictures in the black box
I have edited the css so that the box is big enough
and so that its centered but my 4th image won't get
inline with the other 3
#website design #css
  • Remove the paddings, remove the margins, check if your images have any blanks or transparency in them around the borders. Make all your images "display:block;" If they are of different sizes, make their margins different. or set width and height of the main div containing the images and "margin:auto;" it.

    Hope this helps.
  • try using this

    whatever your class is {

    position: relative;
    top: xx px;
    bottom: xx px;
    left: xx px;
    right: xx px;

    }


    basically just play around with this result until your image is align. Another option is to use the float property but I highly recommend you try position: relative; first.

Next Topics on Trending Feed

  • 3

    I need help I'm using this template (I can't post links but maybe I can pm someone and they can) to create a website I'm trying to make it so I can put 4 pictures in the black box I have edited the css so that the box is big enough