|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Code:
#navbar {
text-align:right;
background-image: url('images/menu.gif');
background-repeat: repeat;
color: #ffffff;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 16;
height:26px;
padding-top: 5px;
line-height:0px;
}
i took out the font-size of the classes used over it but still a no go. look here to see it. |
|
#2
|
||||
|
||||
|
Code:
#navbar {
text-align:right;
background-image: url('images/menu.gif');
background-repeat: repeat;
color: #ffffff;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 16;
height:26px;
padding-top: 5px;
line-height:0px;
}
You haven't specified a length unit for the font-size, px, pt, em. http://www.w3.org/TR/CSS21/syndata.html#length-units Last edited by Akh : May 3rd, 2008 at 05:13 AM. |
|
#3
|
|||
|
|||
|
Quote:
Seems, weird. You specified everything else. Also, I would use ems or %'s to define your font size. IF you don't, then it is a defined size. Resizing the page, zooming in, won't work. Edit: 12px is the default font size so that's why. Last edited by GameYin : May 3rd, 2008 at 03:37 PM. Reason: Default |
|
#4
|
|||
|
|||
|
but by setting it shouldnt it be what i set it to? what do i need to do?
|
|
#5
|
|||
|
|||
|
It isn't what you set it to because you never specified a px. or a % for that case. add a unit of measurement to the code. What you did basicaly isn't doing anything
|
|
#6
|
|||
|
|||
|
nope, i did that before and nothing changed it.
here is my navbar: Code:
#navbar {
text-align:right;
background-image: url('images/menu.gif');
background-repeat: repeat;
color: #ffffff;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 16px;
height:26px;
padding-top: 5px;
line-height:0px;
}
#navbar ul {
padding-left: 0;
margin-left: 0;
font-size: 16px;
}
#navbar ul li {
display: inline;
list-style-type:none;
margin-left: 0.3em;
margin-right: 0.3em;
font-size: 16px;
}
#navbar ul li a {
color:#495B20;
background-color:#BAD36B;
border-left: 2px solid #fff;
border-top: 2px solid #fff;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
}
#navbar ul li a:hover {
background-color:#495B20;
color:#BAD36B;
border-left: 1px solid #000;
border-top: 1px solid #000;
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
}
i tried 16px in the div, ul, and li, and still nothing. this is totally weird. at the top i have Code:
* {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
|
|
#7
|
||||
|
||||
|
All the text is in the links, isn't it? So set the font-size on "#navbar ul li a".
It's best to avoid using "pt" and "px" units for font-size. I suggest you read this: Best Practice for font-size?
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#8
|
|||
|
|||
|
it was the * operator. i just made the body have 12px and its good now. dunno why it wasnt overridden though. and for font size, sure i'll change it later, but for now i just want my site to look reasonable before it is anything special like resizable.
|
|
#9
|
|||
|
|||
|
As I said earlier in a previous post, don't use px or pt.
Quote:
|
|
#10
|
|||
|
|||
|
but my page is not liquid, those get too messy. i dont want it to change on resize, other than the outside borders.
|
|
#11
|
|||
|
|||
|
If you use px, then you aren't doing the right thing for people who can't see screens good.
|
|
#12
|
|||
|
|||
|
alright, but wouldnt i need to make the whole site handicap accessible? text size, what else do i need to change.
|
|
#13
|
||||
|
||||
|
I think you mean elastic, not liquid (fluid). Fluid is when the page resizes based on the size of the viewport. Elastic is when the page resizes in relation to the font-size.
For one thing, you could either remove the alt text for the thumbnail images (give the attribute an empty value) or change it to something more useful, e.g. "thumbnail of a screen capture of Tetrollapse". Simply repeating the game title is not very useful. |
|
#14
|
|||
|