Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > Graphics, Images, Logos Templates & CSS > CSS Cascading Style Sheets

Notices

CSS Cascading Style Sheets All topics and discussions relating to CSS Cascading Style Sheets.

Reply
 
Thread Tools
  #1  
Old 09-27-2008, 03:32 PM
Major
 
Join Date: Dec 2007
Location: Bastrop, TX USA
Posts: 362
Send a message via Yahoo to jcaywood
Default CSS navigation menu

I'm playing around with changing my Navigation menu to CSS. But I know very little about CSS.

Here are my pages:
LINK to original Updates page
LINK to CSS Updates page

LINK to original Roster page
LINK to CSS Roster page

I think the CSS menus look so much better than the original menus.
I've just adapted the CSS coding used on the Roster page. However I would like to reduce the size of the Menu a bit but this also reduces the Roster columns which creates text wrapping which I want to avoid.
Is there any way to change one CSS style on a page without changing another?
I"ve also been unable to change the font size. Here's my code:

<style type="text/css">
#menu a, #menu a:visited {
font-family:comic sans ms;
text-decoration:none;
text-align:center;
background-color:#7ED0F2;
color:black;
display:block;
width:10em;
padding:0.1em;
margin:0.2em auto;
border-right:3px solid #7ED0F2;
border-left:3px solid #7ED0F2;
}
#menu a:hover {
border-right:3px solid #F6Bc1C;
border-left:3px solid #F6Bc1C;
background-color:gold;
}
</style></style>

I tried adding to the above code:
font-size: 8
and font-size:80%
and font-size-adjust:0.80
but nothing changes. What code would I add to adjust the font size and the height of the boxes?

Will this change create any problems I am overlooking?

Thanks for your help and comments.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 09-27-2008, 04:08 PM
Collectors-info's Avatar
General
 
Join Date: Feb 2006
Location: London (UK)
Posts: 7,530
Default Re: CSS navigation menu

Hi is your css got all the punctuations?. IE:

<style type="text/css">
#menu a, #menu a:visited {
font-size:10px;
font-family:comic sans ms;
text-decoration:none;
text-align:center;
background-color:#7ED0F2;
color:black;
display:block;
width:10em;
padding:0.1em;
margin:0.2em auto;
border-right:3px solid #7ED0F2;
border-left:3px solid #7ED0F2;
}
#menu a:hover {
font-size:10px;
border-right:3px solid #F6Bc1C;
border-left:3px solid #F6Bc1C;
background-color:gold;
}
</style>
__________________
Regards Chris,
Sites are view in FF & IE, with res @ 1024 x 768 on 19” screens.

Barnet walks
How to ask for help on the forum. - VH prices. - BV Tutorials. - Using PIXresizer - Image/Photo Tips -
Collectables, Collecting


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 09-27-2008, 04:17 PM
Major
 
Join Date: Dec 2007
Location: Bastrop, TX USA
Posts: 362
Send a message via Yahoo to jcaywood
Default Re: CSS navigation menu

No, it does not have font size. I tried adding it but wasn't putting the 'px'.
I'll do that now. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 09-27-2008, 04:29 PM
Major
 
Join Date: Dec 2007
Location: Bastrop, TX USA
Posts: 362
Send a message via Yahoo to jcaywood
Default Re: CSS navigation menu

I added font-size:6px to both locations, saved and published and didn't see any change. I then changed the value to 16px, saved and published and no change either.
I'm guess I'm missing something. Thanks

PS: Yes, I F5 several times and even cleared cache in IE and FF.

Last edited by jcaywood; 09-27-2008 at 04:32 PM. Reason: add info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 09-27-2008, 06:03 PM
Major
 
Join Date: Dec 2007
Location: Bastrop, TX USA
Posts: 362
Send a message via Yahoo to jcaywood
Default Re: CSS navigation menu

I got the font size added - I used only 13 instead of 13px. Seems this also automatically adjusts the height. It didn't work at first because I left off the ';' at the end of the line.
I suspect changing the style between two CSS apps on a page has to do with the ' #menu a, #menu a:visited {' and possibly using a 'menu b' - but I'm lost from there.

One other question also: Is there some easy way to measure the result of CSS on a page to allow me to size the HTML box the same size as the result? For example, if my CSS menu is 150x400 it would help me to keep the HTML box 150x400. I can get close by moving an image on the page until I get it touching the menu and then get coordinates. There may be a quicker way?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 09-27-2008, 06:39 PM
Major
 
Join Date: Dec 2007
Location: Bastrop, TX USA
Posts: 362
Send a message via Yahoo to jcaywood
Default Re: CSS navigation menu

I think I just solved the problem of changing styles on a single page:
By using a % instead of a font size, it prevents the text-wrapping on the roster page.
I am still lost on determining the size for the HTML box.
Thanks

Have you ever heard that old saying? You can buy 'em books and send 'em to school, but all they do is eat the covers off.
Asking questions and then answering them makes me think that applies to me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 02-10-2009, 06:42 AM
Corporal
 
Join Date: Feb 2009
Posts: 12
Default Re: CSS navigation menu

For that you should decrease the font-size and width.
Hope that you will get sufficient help.........
__________________
New York Web design
Website design
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 02-10-2009, 08:38 AM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: CSS navigation menu

hk.. those are not vodahosted sites in your signature. Im removing them again..do not put them back.

karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off



All times are GMT +1. The time now is 10:54 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - 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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203