cancel
Showing results for 
Search instead for 
Did you mean: 

What goes wrong wiith my CSS declarations?

SOLVED

What goes wrong wiith my CSS declarations?

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!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: What goes wrong wiith my CSS declarations?

Turns out i made a mistake typing the commenting above the code. Because of this the code below it didn't render.

Mystery solved...

View solution in original post

1 REPLY 1

Re: What goes wrong wiith my CSS declarations?

Turns out i made a mistake typing the commenting above the code. Because of this the code below it didn't render.

Mystery solved...