ki Posted July 25, 2007 Share Posted July 25, 2007 Im having a blank, I have this list <ul> <li>DYNAMIC CONTENT</li> <li>DYNAMIC CONTENT</li> <li>DYNAMIC CONTENT</li> </ul> they're all having different values of space going in, but I want them to be the same length so that when I hover over them it will look even not based on the size that each individual li is. any help so they're all the same size? without width because u don't know how big they are actually going to be Quote Link to comment https://forums.phpfreaks.com/topic/61696-im-having-a-blank/ Share on other sites More sharing options...
calabiyau Posted July 25, 2007 Share Posted July 25, 2007 I think you would have to select a maximum width if you want them all to be the same size regardless of content. Might be a good case for a table where the column will stretch with the content and then you can style the individual td's. Quote Link to comment https://forums.phpfreaks.com/topic/61696-im-having-a-blank/#findComment-307151 Share on other sites More sharing options...
moberemk Posted July 25, 2007 Share Posted July 25, 2007 Try giving the LI elements a class: <ul> <li class="whatever">DYNAMIC CONTENT</li> <li class="whatever">DYNAMIC CONTENT</li> <li class="whatever">DYNAMIC CONTENT</li> </ul> And then giving them a simple CSS width property: .whatever { width: 100px; } Quote Link to comment https://forums.phpfreaks.com/topic/61696-im-having-a-blank/#findComment-307216 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.