Align list to the left

This is a discussion on "Align list to the left" within the Web Page Design section. This forum, and the thread "Align list to the left are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 15th, 2006, 08:57
csa csa is offline
Up'n'Coming Member
Join Date: Nov 2005
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Align list to the left

Is there an easy way to align a bulleted list to that it is right up the left hand side and is viewable in all browsers? See Attached. In this instance I am using my own image bullets rather than pre-set. Thanks
Attached Images
File Type: gif list.gif (462 Bytes, 44 views)
Reply With Quote

  #2 (permalink)  
Old Aug 15th, 2006, 09:01
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Align list to the left

I don't quite understand what you're trying to do, but something like this will give you full control:

Code: Select all
<style type="text/css">
    ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
    li {
        margin: 0;
        padding: 0 0 0 10px;
        background: #fff url("bullet.gif") no-repeat 0 50%;
    }
</style>
Reply With Quote
  #3 (permalink)  
Old Aug 15th, 2006, 11:39
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Align list to the left

You really need to restate your question more carefully. I can't tell what you want to do.
Reply With Quote
  #4 (permalink)  
Old Aug 15th, 2006, 14:43
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Align list to the left

Something like this should get you going.

#foo ul {
padding:0;
margin:0;
}

#foo li {
list-style-type:none;
padding: 0 0 0 12px; /* or whatever the bullet size is plus a few pixels */
background: url(../images/foo_bullet.jpg) center left no-repeat;
}
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 16th, 2006, 08:22
csa csa is offline
Up'n'Coming Member
Join Date: Nov 2005
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Align list to the left

Thank you css posters, this has worked.

Will try and expand on my posts in future.
Reply With Quote
Reply

Tags
align, list, left

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a list for navigation, can you center a list? tonyb Web Page Design 4 May 9th, 2008 16:26
2 Drop down list - auto select depending on choice from first list ciaranleeper JavaScript Forum 0 Mar 26th, 2008 10:38
Spacing between list items incorrect when span tag is used in a list item... MikeTheVike Web Page Design 5 Apr 18th, 2007 01:52
List to align left csa Web Page Design 6 Feb 26th, 2006 07:19
Having trouble moving list to the left csa Web Page Design 2 Dec 12th, 2005 08:56


All times are GMT. The time now is 07:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43