CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 14th, 2012, 11:58 AM
maineman maineman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 112 maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 27 m 57 sec
Reputation Power: 5
CSS help please

I need help styling my buttons. Currently my buttons have a bullet point and they are underlined. What I want is no bullet, no underline and a blue background with padding between the buttons.

Here is my button code which is in an include file:

PHP Code:
<ul>
<
li><a href "index.php?page=home_page">Home Page</a></li>
<
br>
<
li><a href "index.php?page=site_layout">Site Layout</a></li>
<
br>
<
li><a href "index.php?page=control_structures">Control Structures</a></li>
<
br>
<
li><a href "index.php?page=string_functions">String Functions</a></li>
<
br>
<
li><a href "index.php?page=web_forms">Web Forms</a></li>
<
br>
<
li><a href "index.php?page=midterm_assessment">Midterm Assessment</a></li>
<
br>
<
li><a href "index.php?page=state_information">State Information</a></li>
<
br>
<
li><a href "index.php?page=user_templates">User Templates</a></li>
<
br>
<
li><a href "index.php?page=final_project">Final Project</a></li>
</
ul


Here is my style sheet snippet for the buttons:

PHP Code:
#button_nav 
    
{
    
text-decoration:none;
    
float:left;
    
width10%;
    list-
style:none;
    } 

Reply With Quote
  #2  
Old October 14th, 2012, 12:05 PM
badger_fruit's Avatar
badger_fruit badger_fruit is offline
Confused badger
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2009
Location: West Yorkshire
Posts: 760 badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 5 h 15 m 18 sec
Reputation Power: 339
You know that there's a CSS section to this forum --> HERE
__________________
The number for UK Emergencies is changing, the new number is 0118 999 881 999 119 7253

"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984

Reply With Quote
  #3  
Old October 14th, 2012, 12:20 PM
maineman maineman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 112 maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level)maineman User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 27 m 57 sec
Reputation Power: 5
i realized that after i posted it, but i am not allowed to move it.

Reply With Quote
  #4  
Old October 14th, 2012, 02:42 PM
badger_fruit's Avatar
badger_fruit badger_fruit is offline
Confused badger
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2009
Location: West Yorkshire
Posts: 760 badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level)badger_fruit User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 5 h 15 m 18 sec
Reputation Power: 339
Quote:
Originally Posted by maineman
i realized that after i posted it, but i am not allowed to move it.


I'm sure that a Moderator will when they see this; as for the CSS help, I'm not too hot on front-end but I think that you may need to use "margin" like so:-
margin: 10 10;

As for no underline, I think that you should use :-
text-decoration: none;

To remove the bullet you can try:-
list-style: none;

Although people in the CSS forum will be able to confirm if I'm talking out of my bottom or not, I'd think that all the answers to your CSS woes can all be found via google.

EDIT > For the text background, try :-
background-color:blue;

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS help please

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap