|
|
#1 | ||
|
Junior 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. I thank you in advance for your help. |
||
|
|
|
|
|
#2 | ||
|
Senior Member
|
I haven't done HTML in a while, but in my mind it would be:
HTML Code:
<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;" />
Last edited by Xenonsoft; 02-19-2009 at 07:22 PM. |
||
|
|
|
|
|
#5 | ||
|
Member
Join Date: Oct 2011
Location: Liverpool
Posts: 68
Thanks: 2
Thanked 9 Times in 8 Posts
|
I'm just curious - doesn't the image get all pixelated and stretched?
|
||
|
|
|
|
|
#6 | ||
|
Junior Member
|
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.
|
||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|