Extending Banner

Anglo Design

New Member
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.
 
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:
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.
 
Back
Top