HighDots Forums  

'fixed' bg image offset

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss 'fixed' bg image offset in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew Poulos
 
Posts: n/a

Default 'fixed' bg image offset - 07-19-2005 , 10:05 PM






I have some HTML that looks a bit like this:

<div id="panel">
<div>
<p>blah</p>
</div>
</div>

The relevant CSS looks like this:

div#panel {
position: absolute;
left: 100px; top: 60px; width: 600px; height: 300px;
border:1px solid #0F296E;
background: url(images/line.png) fixed;
overflow: auto;
}

'line.png' is a 1x300 high image.

When I view the page in IE the background image is "tucked" into the top
left corner of the DIV. When I view it with FF the background starts
about 1/3 of the way down the DIV. What do I have to do to get the
background image "tucked" into the the top left corner?

Andrew Poulos

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.