Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-10-2010, 07:29 PM   PM User | #1
ptrcao
Regular Coder

 
Join Date: Dec 2010
Location: Australia
Posts: 356
Thanks: 143
Thanked 0 Times in 0 Posts
ptrcao is an unknown quantity at this point
remove bullet indent - how?

remove bullet indent - how?

I've tried removing the padding and margin for ul but it hasn't worked.

http://www.mathannotated.com/

I want to get the blue square icon ("differentiation") right up against the left margin.

(In case you're wondering why I'm including it as part of a one-member list, I'll be introducing another 20 odd icons and treating it as an inline horizontal list.)
ptrcao is offline   Reply With Quote
Old 12-10-2010, 07:32 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello ptrcao,
Add this to your CSS - ul#icons {padding: 0;}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
ptrcao (12-10-2010)
Old 12-10-2010, 07:38 PM   PM User | #3
ptrcao
Regular Coder

 
Join Date: Dec 2010
Location: Australia
Posts: 356
Thanks: 143
Thanked 0 Times in 0 Posts
ptrcao is an unknown quantity at this point
Quote:
Originally Posted by Excavator View Post
Hello ptrcao,
Add this to your CSS - ul#icons {padding: 0;}
Thanks, it worked Mr Excavator!

BTW, I already had

Code:
#icons ul{padding-left: 0px;}
which didn't work. What was wrong with my original code here?

Is #icons ul{...} not interchangable with ul#icons{...}?
Or was it just a misapplication of padding-left?
ptrcao is offline   Reply With Quote
Old 12-10-2010, 07:44 PM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by ptrcao View Post
Thanks, it worked Mr Excavator!

BTW, I already had

Code:
#icons ul{padding-left: 0px;}
which didn't work. What was wrong with my original code here?

Is #icons ul{...} not interchangable with ul#icons{...}?
Or was it just a misapplication of padding-left?
#icons ul is looking for an unordered list inside a div named #icons.
ul#icons is referring to an unordered list named #icons.

See the difference?
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
ptrcao (12-10-2010)
Old 12-10-2010, 07:51 PM   PM User | #5
ptrcao
Regular Coder

 
Join Date: Dec 2010
Location: Australia
Posts: 356
Thanks: 143
Thanked 0 Times in 0 Posts
ptrcao is an unknown quantity at this point
Quote:
Originally Posted by Excavator View Post
#icons ul is looking for an unordered list inside a div named #icons.
ul#icons is referring to an unordered list named #icons.

See the difference?
Thanks; you learn something new everyday.
ptrcao is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 05:43 AM.


Advertisement
Log in to turn off these ads.