CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 5th, 2013, 01:06 AM
cjohnson51 cjohnson51 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 3 cjohnson51 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 14 sec
Reputation Power: 0
Aligning DIVs

I'm attempting to align the DIVs on my site within one wrapper but I've overlooked something and I can't center my header. Any help will be appreciated. I'm probably just tired and missing the obvious problem. Here's my CSS:

Code:
#splash {
	width: 900px;
	align: center;
	text-align: left;
	padding-top: 34px;
	padding-left: 240px;
	height: 100px;
	border:0px solid;
	font: 15px 'DayPosterBlackRegular';
}

#sparksdiv {
	width: 0px;
	height: 0px;	
	padding-left: 400px;
	padding-bottom: 60px;
	padding-right: 100px;
}

.nav {
	width: 900px;
	padding-top: 98px;
	padding-right: 30px;
	margin-left: 350px;
	position: absolute;
	font-size: 15px;   
	line-height: 70%;
	font-family: "DayPosterBlackRegular";
	list-style: none;
	text-align: center;
}


and my HTML:

Code:
<div id="wrapper">
<script src="scripts/center.js"></script>
	
    	<div id="nav">
        
		<ol id="nav-two" class="nav">
	<li><a href="index.php">HOME</a>
		<audio id="beep" preload="auto">
			<source src="sounds/menuclick.mp3"></source>
			<source src="sounds/menuclick.ogg"></source>
		</audio>
	</li>
		<li><a href="design.php">DESIGN</a></li>
		<li><a href="photography.php">PHOTOGRAPHY</a></li>
		<li><a href="about.php">ABOUT</a></li>
		</ol>
		<script src="scripts/beep.js"></script>
	
    		<div id="sparksdiv">
				<video id="neonsparks" width="200" height="300">
       		 	<source src="sfx/sparks.ogv" type="video/ogg" onerror='alert("We are sorry: Your browser does not support any of the video formats available at this time.");'></source>
     			</video>    
     		</div>
		</div>
        
	<div id="splash">
	<audio id="neon-on" preload="auto">
		<source src="sounds/splash.mp3"></source>
		<source src="sounds/splash.ogg"></source>
	</audio>
COREY JOHNSON <a onmouseover="hoverVideo()">Media Design</a>
	<script src="scripts/sparks.js"></script>
	<script src="scripts/neon.js"></script>
	</div>


The header (splash) contains my name and a title that animates sparks when hovering over. This is all to the left and on the same line as my nav menu. The wrapper ends after the body. I want them to all align center with the body and the footer. So far the header and title remain fixed and I can't seem to get everything to center together. Any help would be appreciated.

Reply With Quote
  #2  
Old January 5th, 2013, 03:09 AM
Nanomech's Avatar
Nanomech Nanomech is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Location: The Pleiades
Posts: 192 Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 23 h 7 m 18 sec
Reputation Power: 7
Send a message via Skype to Nanomech
Do you have a live example?

NM.
__________________
"WERE NOT WORTHY!"
"WERE NOT WORTHY!"

Reply With Quote
  #3  
Old January 6th, 2013, 09:18 PM
cjohnson51 cjohnson51 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 3 cjohnson51 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 14 sec
Reputation Power: 0
Quote:
Originally Posted by Nanomech
Do you have a live example?

NM.


Actually I just figured it out, thanks. Just needed more sleep as it turns out.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsWeb DesignCSS Help > Aligning DIVs

Developer Shed Advertisers and Affiliates



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap