1 reply [Last post]
teletubby
teletubby's picture
Offline
newbie
Last seen: 7 years 36 weeks ago
Timezone: GMT-5
Joined: 2013-09-28
Posts: 1
Points: 2

Having a strange problem: Self generating forms makes its own id tag for css to use. The tags are #Jan, #Feb, #Mar, #apr, ETC. I display six horizontal buttons, currently Oct through Feb. The first 4 are ok. The 4th button has no color and the 6th is not on the same line.
www.themcatees.net/test/php_files/where_we_are.php

css code follows:
[
div#what_month {position:fixed; top: 2em; left: 0em; width: 40em; height: 3.5em; background: #800000; color: #FFFFFF;}
div#home button#home_button {
display: block;
float: left;
text-align: center;
margin-left: 0.25em;
margin-top: 0.25em;
margin-right: 3.5em;
width: 3.5em;
height: 2.875em;
line-height: 2.875em;
color: #0000FF;
background: #FFFf00;
font-family: currier;
border-radius: 1.4375em;
font-size: 0.625em;
font-weight: bold;
padding: 0.125em;
border-width: 0.0625em;
border: outset;
border-color: #999900;
}

div#what_month button #Jan, #Feb, #Mar, #Apr, #May,
#Jun, #Jul, #Aug, #Sep, #Oct, #Nov, #Dec {
display: block;
float: left;
text-align: center;
margin-top: 0.25em;
margin-right: 0.1875em;
margin-left: 0.1875em;
width: 3.5em;
height: 3.5em;
background: #000080;
color: #F0F8FF;
font-family: arial;
border: 0.1875em;
border: outset;
border-color: #0000AA;
border-radius: 0.0625em;
} /* AliceBlue on RoyalBlue */

]

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 8 hours 44 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Line 32 of your stylesheet

Line 32 of your stylesheet you are missing a comma before #Jan. It should be:
div#what_month button, #Jan, #Feb, #Mar, #Apr, #May, #Jun, #Jul, #Aug, #Sep, #Oct, #Nov, #Dec {