Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 27th, 2007, 4:31 PM   #1
brokenhope
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 126
Rep Power: 4 brokenhope is on a distinguished road
Slight Float Problem. Code and Screenshot.

I cant get the navigation floating on the banner to display correctly, the way I want it to look is in the screenshot, I want it to be fluid, but only fluid further left, and keep the constant margin from the right...

I have been trying to figure out how to accomplish this, I dont think I am on the right track, since I need the single image borders to hug the sides of the text, and the divs just aren't doing it, without specific pixel values that is, which defeats the purpose of it, I need it fluid.

anyways, if you can help it would be a HUGE HELP!!!

index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<head>
	<title>Elemental Concepts - Programming, Graphics, Tutorials, Anime, and more</title>
	<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body>
	<div id="wrapper">
		<div id="bannerwrap">
			<div id="bannernavwrap">
				<div id="bannernavleft"></div>
				<div id="bannernavbody"><span>
					<a href="index.php">Home</a> - 
					<a href="contact.php">Contact Me</a> - 
					<a href="portfolio.php">Portfolio</a> - 
					<a href="archive.php">Misc. Archive</a>
					</span></div>
				<div id="bannernavright"></div>
			</div>
		</div>
	</div>
</body>

style.css
html {
	height: 100%;
}

div {
	padding: 0;
	margin: 0;
}

a, p, span {
	font-size: 1em;
}

a {
	text-decoration: none;
}

body {
	height: 100%;
	text-align: center;
	margin: 0px 0px 0px 0px;
	background-color: #000;
}




div#wrapper {
	width: 727px;
	height: 100%;
	margin: 20px auto auto auto;
	padding: 0px;
	text-align: left;
	background-color: #1b1b1b;
}

div#bannerwrap {
	width: 727px;
	height: 151px;
	margin: 0;
	padding: 0;
	background-image: url('images/banner.jpg');
}

div#bannernavwrap {
	float: right;
	margin-right: 10px;
	margin-top: 120px;
	height: 23px;
}

div#bannernavleft {
	float: left;
	width: 9px;
	height: 23px;
	background-image: url('images/banner_navigation_left_corner_shine.gif');
}

div#bannernavright {
	float: right;
	width: 9px;
	height: 23px;
	background-image: url('images/banner_navigation_right_corner_shine.gif');
}

div#bannernavbody {
	height: 23px;
	margin: 0 9px 0 9px;
	background-image: url('images/banner_navigation_bg_shine.gif');
}

#bannernavbody span, #bannernavbody a{
	font: bold .9em tahoma, verdana, arial;
	color: #fff;
}

#bannernavbody a:hover {
	color: #6dcff6;
}

thanks again.
Attached Images
File Type: jpg design3_problem1.jpg (368.2 KB, 7 views)
brokenhope is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
quick maths problem Konnor C++ 2 Dec 10th, 2005 12:02 PM
Is some new code being tested on this page? java_roshan Community Announcements and Feedback 5 Oct 17th, 2005 6:58 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC