This is a discussion on "IE 5.5 div not centered" within the Web Page Design section. This forum, and the thread "IE 5.5 div not centered are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
IE 5.5 div not centered
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
IE 5.5 div not centered
Since I have a <div> that is 770 pixels wide but also has padding of 50 pixels on right and left, I need some type of hack to center this div for IE 5.5 because it doesn't like the padding.
I read that I should use
Could someone tell me how to correctly use the hack? I can't post the site because I don't want it to show up in SE's. The css code I have now is
Thanks in advance! |
|
|
|
#2
|
|||
|
|||
|
Re: IE 5.5 div not centered
Add text-align: center; to the parent div.
So ... if #content is child of body then
|
|
#3
|
|||
|
|||
|
Re: IE 5.5 div not centered
Sorry Karinne, I do have that. The parent is centered.
I think I need to work around the padding issue. IE 5.5 doesn't like padding. |
|
#4
|
||||
|
||||
|
Re: IE 5.5 div not centered
Nesting div's is really the only solution to "fixing" the box model in IE.
|
|
#5
|
|||
|
|||
|
Re: IE 5.5 div not centered
Linda ... if you didn't figure it out yet, give us a link ... if not ... post the answer
|
|
#6
|
|||
|
|||
|
Re: IE 5.5 div not centered
I haven't actually used the hack but the box hack can be found here.
I can't post the link because it's for a State Representative. I can't take the risk of having it show up in Google under webforumz. I think I'm going to have to implement the box hack because I would imagine many of her visitors are going to be older and possibly still using IE 5.5. Thoughts? |
|
#7
|
|||
|
|||
|
Re: IE 5.5 div not centered
OK .. well ... can you at least give us more code?
|
|
#8
|
|||
|
|||
|
Re: IE 5.5 div not centered
Here's the html revised a bit to take out any info
The css for it is:
Last edited by Lchad; Mar 28th, 2007 at 13:48. Reason: make it easier to read |
|
#9
|
|||
|
|||
|
Re: IE 5.5 div not centered
Well ... it's hard to say what will help since I don't have IE5.5 installed here but... a few things I see that's wrong with the code above is:
You must add a width (width: 790px |
|
#10
|
||||
|
||||
|
Re: IE 5.5 div not centered
You might be interested, Karinne: http://tredosoft.com/Multiple_IE
Allows you to have IE 3 through 6. Not that anyone is using 3 or 4, but it's sometimes to look for the hell of it. |
|
#11
|
|||
|
|||
|
Re: IE 5.5 div not centered
Yeah, I can't thank you enough for posting that on here Ryan. I feel like jumping up and down for JOY!!
|
|
#12
|
||||
|
||||
|
Re: IE 5.5 div not centered
Hehe, moojoo found it first. I jumped up and down with joy when he gave me that link
|
|
#13
|
|||
|
|||
|
Re: IE 5.5 div not centered
Meh ... I don't support IE5.5 or lower. IE6 yes but not lower than that!
|
|
#14
|
|||
|
|||
|
Re: IE 5.5 div not centered
I just check my browser stats today and I have .7% of the people using IE 5.5. Not too many!
|
|
#15
|
|||
|
|||
|
Re: IE 5.5 div not centered
I have none
|
|
#16
|
|||
|
|||
|
Re: IE 5.5 div not centered
lucky you!
|
|
#17
|
|||
|
|||
|
Re: IE 5.5 div not centered
Your .7% is probably from a while back too you know. I doubt it's very recent. Depending on how long you've been keeping stats, I doubt you had 5.5 users very recently. I wouldn't worry too much about them or the support of them.
That's my opinion of course |
|
#18
|
|||
|
|||
|
Re: IE 5.5 div not centered
Linda *High 5's* Karinne in complete agreement.... shhhhhhhhh don't tell Ryan!
|
|
#19
|
|||
|
|||
|
Re: IE 5.5 div not centered
|
![]() |
| Tags |
| centered, div, ie 55 |
| Thread Tools | |
|