Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Getting creative with lists

Featured Replies

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!

#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;
 }

  • 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.

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.

It's not looking too good at the moment in FF2 :o

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;
 }

  • Author
It's not looking too good at the moment in FF2 :o

 

 

What is it doing currently? I was just playing with it so that may have been part of it.

  • Author

that's the current state?!

Yeah, I've cleared the cache too.

I'll have a look at the css in a sec and see if I can help

  • 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.

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

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.