logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 08-28-2011, 08:16 AM   #1
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default Display inline in IE7 ignores the width of parent div

Morning all

Have a dilemma this a.m.

I have a list of links for a menu and want them to be 'text-align' centered within a parent div. In most browsers it is fine to set the li styles to display inline as, when the menu gets too long, the links 'break' to the next line.

The problem is IE7. The inline list items ignore the width of the parent div and remain on the same line.

I have 'semi-cured' this for the time being using an IE7 stylesheet and floating the items left where they break and fit the div width fine but, of course, this doesn't allow for centring the menu and all list items are aligned to the left.

Any ideas how I can get the display: inline list items to take notice of the parent div width and break to the next line rather than the menu disappearing off into the distance in IE7?
Corrosive is offline   Reply With Quote
Old 08-29-2011, 12:40 AM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

I don't have a clue but would display:inline-block have a different affect?
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 08-29-2011, 06:51 AM   #3
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Quote:
Originally Posted by DWcourse View Post
I don't have a clue but would display:inline-block have a different affect?
No, well not in a positive way anyway.
Corrosive is offline   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

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

Forum Jump


All times are GMT. The time now is 05:17 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com