whizard
02-18-2005, 04:47 PM
OK. Ive got a problem with my inline styling. I am just messing around with a page, and practicing making a semantically correct page. For now, I am keeping any small amount of style necessary in the head. I will evetually export it to an external sheet. My problem is that som of my stylin is not taking effect in the browser, namley any tag that uses a class.
CSS (just the tags that have problems)
p.login_text
{
font-family:Arial, Helvetica, sans-serif;
font-size:8pt;
color:#000066;
}
ul.login
{
list-style:none;
float:left;
}
HTML (just where im having trouble)
<form action="login/login.php" method="post">
<p class="login_text">
<ul class="login">
<li>
Login
</li>
<li>
Username:
</li>
<li>
<input type="text" name="username" />
</li>
<li>
Password:
</li>
<li>
<input type="password" name="password" />
</li>
<li>
<input type="submit" name="submit" value="Login"/>
</li>
</ul>
</p>
</form>
Note: the UL:list-style:none; works, just not float:left. This is confusing, cause its choosing just some of the commands to use
full code @: http://www.robowhizards.com/examples
Dan
CSS (just the tags that have problems)
p.login_text
{
font-family:Arial, Helvetica, sans-serif;
font-size:8pt;
color:#000066;
}
ul.login
{
list-style:none;
float:left;
}
HTML (just where im having trouble)
<form action="login/login.php" method="post">
<p class="login_text">
<ul class="login">
<li>
Login
</li>
<li>
Username:
</li>
<li>
<input type="text" name="username" />
</li>
<li>
Password:
</li>
<li>
<input type="password" name="password" />
</li>
<li>
<input type="submit" name="submit" value="Login"/>
</li>
</ul>
</p>
</form>
Note: the UL:list-style:none; works, just not float:left. This is confusing, cause its choosing just some of the commands to use
full code @: http://www.robowhizards.com/examples
Dan