• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Extending Banner


#1
Hello all.

I was wondering if you clever people can help me. I'm after the html code which I can use to make a banner appear to extend with the width of the browser, i.e. with a 1px width block of colour, repeated either side. It's bound to be simple, but so am I when it comes to html.
:icon_rolleyes:

I thank you in advance for your help.
 

Xenonsoft

Active Member
#2
I haven't done HTML in a while, but in my mind it would be:

HTML:
<img src="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/IMAGE.EXTENSION" style="width:100%; border-left:1px solid COLOURHERE; border-right:1px solid COLOURHERE;" />
I think it would be something like that.
 
Last edited:
#6
I'm just curious - doesn't the image get all pixelated and stretched?
Yeah this actually wasn't what I wanted. I found what I wanted in the end, which was the background extending horizontally behind the banner, by duplicating thin slices across the webpage. No stretching.