Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » CSS / HTML problem!


CSS / HTML problem!

Reply
  #1 (permalink)  
Old 08-17-05, 05:44 PM
zenonflare zenonflare is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
CSS / HTML problem!

Hey guys, well, I've got the following code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>HumorSiteScript v. 1.0</title>
<style type="text/css">
<!--

a:link { 
	color: #ededed;
	font-family: verdana, Geneva, Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-decoration: none;
	}

a:visited { 
	color: #ededed;
	font-family: verdana, Geneva, Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-decoration: none;
	}

a:hover { 
	color: #fff;
	font-family: verdana, Geneva, Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-decoration: none;
	}

a:active { 
	color: #ededed;
	font-family: verdana, Geneva, Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-decoration: none;
	}

body {
	background-image: 
	url('images/background.gif');
	background-repeat: repeat-x;
	background-color: #f2f2f2;
	color: #678;
	font-family: Verdana, Geneva, Arial, sans-serif;
	font-size: 10px;
	margin: 0px;
}

input, select, textarea {
	border: solid 1px #7e7e7e;
	background-color: #ffffff;
	color: #002a77;
	padding: 2px;
	font-face: verdana;
	font-size: 8pt;
	font-weight: bold;
}

#mainbody {
	width: 778px;
	background-color: #fff;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	height: 100%;
}


#license_text {
	color: #8396a4;
	padding-top: 5px;
	float: left;
	width: 20%;
	height: 62px;
	position: relative;
	background-image: url(images/header_bg.gif);
}

#logo {
	float: left;
	height: 67px;
	background-image: url(images/header_bg.gif);
	width: 80%;
}

#navbar {
	clear: left;
	background-image: url(images/nav_bg.gif);
	height: 19px;
	position: relative;
	padding-left: 10px;
	width: 768px;
}

#fix	{
	background-image: url(images/header_bg.gif);
	height: 67px;
}

#nav_dividers {
	color: #ededed;
	font-family: verdana, Geneva, Arial, sans-serif;
	font-size: 10px;
	font-weight: bold;
}

#content_area {
	background-color: #fff;
	border-left: solid 2px #ebebeb;
	border-right: solid 2px #ebebeb;
	
}

#main_box {
	background-color: #e6e9ec;
	position: relative;
	width: 748px;
	margin-left: auto;
	margin-right: auto;
	border-top: solid 3px #a2a3a6;
	border-bottom: solid 3px #a2a3a6;
	height: 720px;
	padding: 7px;
}

.title_box {
	background-color: #d8dadd;
	font-weight: bold;
	border-top: solid 3px #a2a3a6;
	border-bottom: solid 3px #a2a3a6;
	padding: 5px;
	color: #8396a4;

}
.content {
	width: 600px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 10px;

}






	
#footer {
	font-weight: bold;
	text-align: center;
	background-color: #fff;
	padding: 5px;
	border-left: solid 2px #ebebeb;
	border-right: solid 2px #ebebeb;
}
-->
</style>
</head>
<body>
<div id="borders">
<div id="mainbody">
		<div id="fix">
			<div id="logo">
				<img src="images/logo.gif" alt="" />
			</div>
			<div id="license_text">
				Version 1.0 Stable Release<br />
				Licensed to: Mike Rowland<br />
				http://www.humorscript.net
			</div>
			<div id="navbar">
				<span id="nav_dividers"><a href="#">Home</a> | <a href="#">Support Forums</a> | <a href="#">License</a> | <a href="#">Help</a> | 
				<a href="#" style="color: #bfbfbf">View Your Site</a> </span>
			</div>
			<div id="content_area">
				<br/>
				<div id="main_box">
					<div class="title_box">
					<a href="#" style="color: #8396a4">Add A New Category</a>
					</div>
					<br />
					<div class="content">
					Category Name: <input type="text" name="name"> <input type="submit">
					</div>
					<div class="title_box">
					<a href="#" style="color: #8396a4">Add A New Category</a>
					</div>
					<br />
					<div class="content">
					Category Name: <input type="text" name="name"> <input type="submit">
					</div>
					
				</div>
			</div>
			<div id="footer">
			Copyright 2005, humorscript.net all rights reserved. Licensed only to Mike Rowland.
			</div>
		</div>
		
		
		
</div>
</div>
</body>
</html>
http://www.humorscript.net/developem...ing/index.html

It's my first site I'm trying to code in divs.

It's nearly done now, as you can see the problem (look in internet explorer) is it messes up the nav bar a bit?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-18-05, 05:45 AM
zenonflare zenonflare is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Fixed it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 11:25 AM
When mailing html e-mail through asp I get no item as set in css Kluit CSS 1 08-02-05 10:30 AM
CSS Only website problem... Justin171985 CSS 5 06-15-05 04:48 PM
problem sending html email + image dflip PHP 2 05-08-05 01:39 PM
Can anyone help me ? (problem using php variables in html db insert code) chronic_ PHP 2 06-13-04 12:19 PM


All times are GMT -5. The time now is 01:15 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.