Hi all,
I am a beginner at CSS and i want to make a picture gallery where i want 4 pictures horizontally aligned. In my custom styles.css i added:
#galleryimagelaptops { float: left; width: 200px; }
#galleryimagecomputers { float: left; width: 200px; }
Then i give the images the right identifiers, depending on the page (laptops or computers)
the problem is that OR the computers show ok and the laptops not, or vica versa. This somehow depends on which declaration i do first.
What's going on here?
And is this a good practice? Is there a better way to get the result that i want?
Thanks in advance!
Solved! Go to Solution.
Turns out i made a mistake typing the commenting above the code. Because of this the code below it didn't render.
Mystery solved...