Sent by jeff on 20 January 2005 03:03
On 11/01/2005, at 2:28 PM, Gunlaug Sørtun wrote:
>> http://www.salvosconnect.org.au/ The problem is that when you resize
>> the browser window, my containing #frame doesn't centre properly
>> over the top of the centred background GIF. I need them to be
>> pixel-perfect. It's almost like a rounding error, but it happens in
>> several different browsers.
>
> The actual center will shift 1px no matter what, so it is not possible
> to hit the same spot on all browser-widths. Just try to calculate the
> exact center of a 1001px wide window, and you'll see what I mean.
Exactly; but won't the browser come up with 500.5px, both for the
#frame DIV and for the background GIF? Why then place the GIF at 500
and the DIV at 501?
> The way to do it is to change method, which you should do anyway since
> your brown background-color makes text invisible without that
> background-image in place. Brown on brown doesn't show.
Thanks for the ideas. Will implement them to the best of my ability :)
> I can't go further into the details, because you have several
> stylesheets/styles which override styles. It was hard enough to find
> the
> actual background-image, and I had to comment out a lot of styles just
> to see what was behind each layer.
> You should have told us what images/styles to look for-- where. :)
> Nothing wrong with your cascade, but hard to work on for an "outsider".
Forgive me for this. We are working with Macromedia Contribute as a
CMS, and the complicated set-up allows them to choose their own "theme"
for each page as they wish, simply by changing the appropriate
style-sheet.
Thanks Gunlaug for taking the time to dig into my code and come up with
your helpful suggestions. Much appreciated.
jeff
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/