Hi Im trying to sort of get a wallpaper gallery going.
However, Im having problems coding some of the CSS, its not behaving the way i expect.
Example
CSS:HTML Code:<!--This is a row with 3 wallpapers--> <div class="wallpaperRow"> <!--this is 1 wallpaper box--> <div class="wallpaper"> <img src="test.jpg" class="wallpaperThumb"> </div> <div class="wallpaper"> <img src="test.jpg" class="wallpaperThumb"> </div> <div class="wallpaper"> <img src="test.jpg" class="wallpaperThumb"> </div> </div>
.wallpaperRow{
width: 800px;
height: 250px;
}
.wallpaper{
width: 250px;
height: 250px;
}
.wallpaperThumb{
width: 200px;
height: 200px;
}
This is JUST an example. Im not asking about the code, Im asking about how to go about coding it
Im not quite sure if i should use a
wallpaper row DIV, then 3 inner divs
If i do this, they dont display next to each other, they display vertically.
Ive tried setting the wallpaper div to display: inline;
Ive also tried using span tags instead, but i get undesired effects.
The span tag doesnt stretch to accomodate the image.
Should i use inner divs, or span tags or p tags or ?