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 01-13-2012, 05:39 PM   PM User | #1
chris1877
New Coder

 
Join Date: Jan 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
chris1877 is an unknown quantity at this point
Text gets cut off

Hey

Im very new to CSS and iv been doing some editing on my own for a site that i have, altho iv ran into a problem which i dont know what to do.

I have a 2nd navigation bar and i put pages or categorys on it, it cuts my text off short. Heres my site - http://top-puppytrainingtips.com/ in the red menu its ment to read Healthy Foods For Dogs but it gets cut off.

Does any one now what code to insert and were ? Its the l ifestyle theme by studio press.

Any help at all would be great, thanks

Chris
chris1877 is offline   Reply With Quote
Old 01-13-2012, 06:11 PM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Try removing the width: 128px; from

#subnav li a, #subnav li a:link, #subnav li a:visited
__________________
Teed
teedoff is offline   Reply With Quote
Old 01-13-2012, 07:34 PM   PM User | #3
dawnistamps
New to the CF scene

 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
dawnistamps is an unknown quantity at this point
If you remove width from this then the entire button displays across the bar. Since they have a specific width tied to them they will only display as much of the text as will fit.

Code:
#subnav li a, #subnav li a:link, #subnav li a:visited {
    background-color: #FF0000;
    color: white;
    font-size: 18px;
    padding: 0 8px 0 15px;
    text-transform: uppercase;
    width: 128px;
}
dawnistamps is offline   Reply With Quote
Old 01-13-2012, 08:20 PM   PM User | #4
chris1877
New Coder

 
Join Date: Jan 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
chris1877 is an unknown quantity at this point
Spot on guys thanks alot for your help.
chris1877 is offline   Reply With Quote
Reply

Bookmarks

Tags
css, newbie, text

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 01:38 PM.


Advertisement
Log in to turn off these ads.