June 30, 200818 yr Hey guys, I know I am coming to you folks a lot for some inspiration and I thank you! I am working on http://qwargy.com/licmotorsports2.com/index.html If you look at the left div where it shows the days and hours the shop is open.. I have it in a very simple list. I am trying to come up with a list that is a bit nicer and not so plain.. Any ideas for a list that would look nicer without being too over the top? thanks again guys n gals!
June 30, 200818 yr #mainleft { padding: 0; margin: 0; } ul#navlist { margin: 0; padding: 0; list-style: none; } ul#navlist li { display: block; padding: 3px 4px 3px 15px; border-right: 2px solid #444; }
June 30, 200818 yr Author Actually I think I like how it is now with the colored "day of the week". But here is a question, is there anyway to align the "hours of operation" vertically without using a table? If you look at them now they kinda wave back and forth.. They don't just go down in a straight line.
June 30, 200818 yr Actually I think I like how it is now with the colored "day of the week".But here is a question, is there anyway to align the "hours of operation" vertically without using a table? If you look at them now they kinda wave back and forth.. They don't just go down in a straight line. li span { width: 50px; float: left; } li span.time { margin-left: 55px; } Then put the times in their own span with the class of time.
June 30, 200818 yr Author Ok awesome. Can't believe I didn't think about using a span for the times :-/ oh well thanks! haha. http://qwargy.com/licmotorsports2.com/index.html I had to play with the code a bit to make it fit but it worked! Thanks!
June 30, 200818 yr It's not looking too good at the moment in FF2 Don't have FF2 to test with but I just realised my code was slightly wrong, which may have put you on the wrong course. li span.hours { width: 50px; float: left; } li span.time { margin-left: 55px; }
June 30, 200818 yr Author It's not looking too good at the moment in FF2 What is it doing currently? I was just playing with it so that may have been part of it.
June 30, 200818 yr Yeah, I've cleared the cache too. I'll have a look at the css in a sec and see if I can help
June 30, 200818 yr Author thanks! I am not too sure what would be causing it.. also it threw my table off on the services page.. I need to play with all the sizing so it doesn't push the right div down on that services page.
June 30, 200818 yr ok, I've had a quick play around. Replace the earlier css with this li span.hours { width: 50px; display:block; text-align:left; float:left; } In other words, don't style the span.time and it should be fine. Linky It seems to be ok on IE7, IE6, FF2, Opera and Safari for windows
June 30, 200818 yr Note my last post, I got my code slightly wrong which is probably why you are having the problems. li span.hours { width: 50px; float: left; } li span.time { margin-left: 55px; } I missed off the .hours.
June 30, 200818 yr Author ok, I've had a quick play around.Replace the earlier css with this li span.hours { width: 50px; display:block; text-align:left; float:left; } In other words, don't style the span.time and it should be fine. Linky It seems to be ok on IE7, IE6, FF2, Opera and Safari for windows Sweet..Thanks! Looks good.. Now I need to figure out why IE6 thinks its a good idea to push my table/div down on the services page yet opera, safari, and ff3 do not do that.
Create an account or sign in to comment