Question by queenbee: HTML/CSS: why will my picture not change height?? please help?
im trying to get a picture to go the full height of my table, just like the one running along the sides of this table:http://www.earthfacts.net/climate/ , i have tried everything but nothing seems to work, at the minuet i have this in my HTML:
and this in my CSS: #bg { background: url(background.jpg) no-repeat; width:73% ; height:200% ; display: block; align=”center” }
this only changes the width and height of the table and makes no changes to the picture, please help because it is driving me crazy…
never mind the %s i have that was just me messing but it only changes the table size
it doesnt matter if i use pixles or % it still just changes the table size and not the picture
Best answer:
Answer by HairGawd
If you picture is a static size which I’m sure it is, just try using exact pixel measurements rather than percentages. You should have a problem using exact pixels. Percentages can be wonky at times, depends on the rest of your code.
Add your own answer in the comments!
Recent Comments