Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Extending Banner

Discussion in 'Website Coding & Programming Forum:' started by Anglo Design, Feb 19, 2009.

  1. Anglo Design

    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.

    I thank you in advance for your help.
  2. Xenonsoft

    Xenonsoft Active Member

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

    <img src="" style="width:100%; border-left:1px solid COLOURHERE; border-right:1px solid COLOURHERE;" />
    I think it would be something like that.
    Last edited: Feb 19, 2009
  3. Anglo Design

    Anglo Design New Member

    Cheers very much :icon_biggrin: I'll give that a go.

  4. Xenonsoft

    Xenonsoft Active Member

    No worries, let me know if it's right or not :).
  5. Edge

    Edge Active Member

    image stretching

    I'm just curious - doesn't the image get all pixelated and stretched?
  6. Anglo Design

    Anglo Design New 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.

Share This Page