|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
gonna try this again.
Okay I've got this login form in a div box menu with two links that take up half the width of said div box menu. Below is the CSS and code, but what I get is the box (border 1px solid black) stopping just before the halfmenuentry links. I'd like them in the box. Is there some sort of inheritance thing I'm not understanding? Thanks, Seth Code:
form {
margin: 0px;
padding: 0px;
}
div.menu {
font-size: 10px;
text-align: right;
width:120px;
border: 1px solid black;
}
h4.menutitle {
text-align: left;
margin: 0;
color:#CCCCCC;
text-transform:lowercase;
width:120px;
background-color:#666600;
border-bottom: 1px solid black;
font-size:11px;
}
div.menuentry {
margin: .33em 0 0 0;
width:120px;
font-weight:bold;
}
div.halfmenuentry {
margin: .33em 0 0 0;
width:60px;
font-weight:bold;
}
div.menuentry a {
text-decoration: none;
color:#006600;
display: block;
padding: 1px;
}
div.menuentry a:hover {
background-color:#999999;
}
div.halfmenuentry a {
text-decoration: none;
color:#006600;
display: block;
padding: 1px;
}
div.halfmenuentry a:hover {
background-color:#999999;
}
HTML Code:
<div class="menu"> <h4 class="menutitle">Login</h4> <form action="" method="post"> u:<input style="width: 7em; border-style: solid; border-width: 1px;" type="text" name="webuserlogin" value="" /> p:<input style="width: 7em; border-style: solid; border-width: 1px;" type="password" name="password" value="" /> store: <input type="checkbox" name="remember" /> <input style="border-style: solid; border-width: 1px;" type="submit" name="loginsubmit" value=".go" /> <div class="halfmenuentry" style="float: left; text-align: left;"><a href="newuser.php">new</a></div> <div class="halfmenuentry" style="float: right;"><a href="forgot.php">forgot</a></div> </form> </div> |
|
|
|
|
|
#2 |
|
Member (9 bit)
|
Interesting fact: If I put a non-breaking space ( 
in after the </form> then it behaves appropriately...Say what?
Last edited by mairving; 05-14-2007 at 03:36 PM. |
|
|
|
|
|
#3 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
I edited your post since it didn't show the </form> tag.
I am not understanding why you are using inline styles along with an external stylesheet. It is just not good practice. I am also not sure exactly what kind of look you want to achieve.
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Stylesheet Linking Problem | Nav_functions | Web Design / Development | 6 | 02-17-2006 09:17 PM |
| Yet another CSS problem (#3) | mysterio2099 | Web Design / Development | 19 | 08-10-2005 01:54 PM |
| Fresh start with CSS | Force Flow | Web Design / Development | 4 | 07-23-2003 10:37 AM |
| Xml And Css Help | Colb | Web Design / Development | 2 | 05-05-2003 05:17 PM |