Question:
Banner and CSS?
anonymous
1970-01-01 00:00:00 UTC
Banner and CSS?
Four answers:
anonymous
2016-04-01 11:21:58 UTC
Without the related source files, it's not going to work. You need whatever images or other files are referenced in the style sheet/CSS. ...
anonymous
2007-05-11 17:15:29 UTC
Use the height and width attributes to tell the image what size to be.
arus.geo
2007-05-11 17:14:45 UTC
why not edit the banner image in an image editor? you can add and resize the image you want to add within it.
Samten
2007-05-11 22:05:26 UTC
I think your question needs to be a bit clearer, because you're describing something that is visual.



Is this like a banner ad, or do you want the image as a background of what's on the left size?



If you the image is too big you have three choices, resize the image itself, resize the image in the img tag (



Or you can resize it in CSS as well - making

#foo { width:200px; height: 500px; }



Lastly you can also set an image to the background of a container in CSS, i don't know if that's what you mean, to do that is also easy, this would be your html:







Your css:

#banner { background: ('banner.jpg') repeat; width:200px; height: 500px;}



That's an example, repeat can be interchanged for repeat-x, or repeat-y.



Hope that helps.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...