English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Okay, I created a banner and I would like an image inside the banner on the left side. What do I need to do? The problem is that the image is big and does not fit in the banner. How would I fit the image? I am using CSS.

2007-05-11 13:07:31 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

And where should I add the height and width attributes?

2007-05-11 13:19:44 · update #1

4 answers

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.

2007-05-11 18:05:26 · answer #1 · answered by Samten 2 · 0 0

Use the height and width attributes to tell the image what size to be.

2007-05-11 13:15:29 · answer #2 · answered by Anonymous · 0 0

why not edit the banner image in an image editor? you can add and resize the image you want to add within it.

2007-05-11 13:14:45 · answer #3 · answered by arus.geo 7 · 0 0

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. ...

2016-04-01 07:21:58 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers