Thu, 2013-12-19 23:38
Hello,
I am trying to create a navigation bar but when I upload it to the website, I lose the formatting, I have included screenshots of both the desired outcome and the actual outcome. Please come!
#shadow #wrapper #navigation { background-color: #1E1C1D; height: 43px; margin-bottom: 10px; padding-left: 0px; } #wrapper #navigation ul { list-style: none; padding: 0; margin: 0; } #wrapper #navigation li { float:left; margin:0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; font-weight: bold; color: #1E1C1D; } #wrapper #navigation li a { background: url(../images/background.fw.png) #1E1C1D bottom left repeat-x; height: 35px; line-height: 2em; float: center; width: 127px; display: block; border: 0.05em solid #1E1C1D; color: #FFFFFF; text-decoration: none; text-align: center; font-size: 11pt; } #wrapper #navigation li a:hover { background: url(../images/background_over.fw.png) #1E1C1D bottom left repeat-x; height: 35px; line-height: 2em; float: center; width: 127px; display: block; border: 0.1em solid #1E1C1D; color: #FFFFFF; text-decoration: none; text-align: center; font-size: 11pt; }
Desired outcome...
http://gyazo.com/d7f297695167fec634ecd9643525ecc8
Actual outcome...
http://gyazo.com/33c204030e16fef640931a878dfc1f24
Many thanks!
Thu, 2013-12-19 23:49
#1
Hi schillers, Can you link to
Hi schillers,
Can you link to the uploaded page?
It might be a specificity issue or an error in your style sheet.
Run it through some Validation.
float: center;
is not valid so there may be more mistakes.
Sat, 2013-12-28 11:42
#2
Hi Tony, Thanks for the
Sat, 2013-12-28 20:29
#3
Hi In layout.css around line
Hi
In layout.css around line 81 you have:
#wrapper #navigation li { float:center;
Change it to float:left;