Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-05-2010, 11:33 PM   PM User | #1
CarlMartin10
Regular Coder

 
Join Date: Apr 2010
Posts: 207
Thanks: 30
Thanked 0 Times in 0 Posts
CarlMartin10 is an unknown quantity at this point
CSS position attribute question

if you look at my site in Firefox, and in IE, there is a button that I used position: absolute; on that is in the RIGHT PLACE in Firefox, but not in IE. I know that I should use position: relative; , but I can not seem to get it to work right. When I do that, my nav menu is pushed down. I am not that good with the positioning. Please advise, thanks.

The portion of code that is the button is #header. purchase

Code:
/** BEGIN header **/
#header {
height: 178px;
}
#header .search {
float: right;
margin-top: 11px;
}
#header .search form {
background: url(../images/search.png) no-repeat 0 0;
height: 49px;
width: 284px;
}
#header .search form input {
float: right;	
background-color: transparent;
border: 0;
font-size: 0.8em;
color: #FFFFFF;
height: 38px;
width: 223px;	
margin-top: 5px;
text-transform: uppercase;
}
#header .search form button {
float: left;	
width: 59px;
height: 49px;
background-color: transparent;
border: 0;
color: transparent;
text-indent: -9999px;	

}


#header .subscribe {
position: relative;
top: 75px;
left: 635px;	
float: left;
text-align: center;
color: #ffffff;

}

#header .purchase {
position: absolute;
top: 149px;
right: 512px;	



}

#header .logo {
clear: both;
}
#header .logo h1 {
padding-bottom: 32px;
}
#header .logo h1 a {
position: relative;
bottom: 15px;
background: url(../images/logo.png) no-repeat 0 0;
display: block;
text-indent: -9999px;
height: 62px;
width: 352px;	
}


#header ul {
list-style-type: none;	

}
#header ul li {
float: left;	
margin-right: 15px;
}
#header ul li a {
padding: 5px 8px;	
color: #FFFFFF;
text-transform: uppercase;
text-decoration: none;
font-size: 0.9em;
font-weight: bold;
}
#header ul li a:hover {
background-color: #b9c3cf;	
}
/** END header **/

Last edited by Apostropartheid; 07-06-2010 at 12:50 AM..
CarlMartin10 is offline   Reply With Quote
Old 07-06-2010, 06:42 AM   PM User | #2
CarlMartin10
Regular Coder

 
Join Date: Apr 2010
Posts: 207
Thanks: 30
Thanked 0 Times in 0 Posts
CarlMartin10 is an unknown quantity at this point
This has been resolved
CarlMartin10 is offline   Reply With Quote
Old 07-06-2010, 07:35 AM   PM User | #3
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Just as an FYI, when you make something position:relative; and change its left, right, bottom, or top values, it still occupies the space that it was originally in. Right now I'm seeing a horizontal scrollbar on your page. My resolution is 1280x800.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Users who have thanked _Aerospace_Eng_ for this post:
CarlMartin10 (07-06-2010)
Old 07-06-2010, 07:57 AM   PM User | #4
CarlMartin10
Regular Coder

 
Join Date: Apr 2010
Posts: 207
Thanks: 30
Thanked 0 Times in 0 Posts
CarlMartin10 is an unknown quantity at this point
noted, thanks
CarlMartin10 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 Off

Forum Jump


All times are GMT +1. The time now is 09:22 PM.


Advertisement
Log in to turn off these ads.