Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-14-2007, 02:54 PM   #1
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
Question I'm a CSS retard

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>
sdkramer is offline   Reply With Quote
Old 05-14-2007, 03:13 PM   #2
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
Interesting fact: If I put a non-breaking space (&nbsp in after the </form> then it behaves appropriately...Say what?

Last edited by mairving; 05-14-2007 at 03:36 PM.
sdkramer is offline   Reply With Quote
Old 05-14-2007, 03:40 PM   #3
Staff
Premium Member
 
mairving's Avatar
 
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
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 07:29 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2