Board index PBase HTML and Style Sheets Left-leaning gallery header in IE

HTML and Style Sheets

Left-leaning gallery header in IE

Customize your galleries.
jlamarca
 
Posts: 9

Left-leaning gallery header in IE

Post Sun Apr 27, 2008 7:50 pm


I would like to think that no one uses Internet Explorer anymore, but some still do. My problem is that my gallery header text does not center on IE (it looks fine on firefox). Rather the block of text is all the way to the left side.

http://www.pbase.com/jlamarca

I'm using my own CSS and I think the problem lies in this section of code:

DIV.galleryheader {
width : 90%;
margin-right : auto;
margin-left : auto;
text-align:center;
font-size:10pt;
}

Changing the width to a pixel value does not solve the problem.

Any suggestions?

flemmingbo
 
Posts: 435
Location: Denmark, Copenhagen

Re: Left-leaning gallery header in IE

Post Sun Apr 27, 2008 9:21 pm


Hi !

Just had a very quick look, try this:

Make your #galleryheader 100% in width instead of 90% - and then make the #intro DIV 90% in width. That should do it.

Hope this makes senes, let me know if this works, if not I'll look into it a bit more.

regards,

Flemming
Flemming Bo Jensen Photography
Gallery: http://www.pbase.com/flemmingbo
My photography blog: http://flemmingbo.wordpress.com

jlamarca
 
Posts: 9

Re: Left-leaning gallery header in IE

Post Tue Apr 29, 2008 7:24 pm


I've tried all sorts of combinations with width % and margins, for both the #intro and the # DIV galleryheader. I can get the main gallery page with #intro to look OK, but for the gallery headers in the individual galleries, nothing seems to come out looking centered on both firefox and IE at a variety of window sizes. So I'm settling on a compromise.

flemmingbo
 
Posts: 435
Location: Denmark, Copenhagen

Re: Left-leaning gallery header in IE

Post Thu May 01, 2008 7:57 am


Weird...I've had a look again, and I can't see why what you're doing shouldn't work. It's really weird, I don't see why IE wouldn't center this DIV as far as I can see you've done everything right.

I'll have a look again at some point, I can't believe I can't crack this :)
Flemming Bo Jensen Photography
Gallery: http://www.pbase.com/flemmingbo
My photography blog: http://flemmingbo.wordpress.com

dang
 
Posts: 3780

Re: Left-leaning gallery header in IE

Post Thu May 01, 2008 2:00 pm


When adding the text in the html section, are you using a center tag at text begging? Text is aligning to left in IE within the table, even though you've centered the table.


Board index PBase HTML and Style Sheets Left-leaning gallery header in IE

Who is online

Users browsing this forum: ClaudeBot and 2 guests