Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

CSS positioning issue...

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch
Impact
0
Hi everyone,

I was just wondering if anybody out there can help me with a problem I'm having with CSS positioning?

http://www.johnpaterson.org/test/index.html
http://www.johnpaterson.org/test/jpstyle1.css

Can anybody tell me why the light grey border at the bottom does not meet the rest of the site?

There is a big unwanted dark grey panel, this is not part of the website.

The site is just my experimentation with CSS positioning.

Cheers,
John :tu:
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
#textarea
{	
	height: 480px;
	width: 620px;
	background-color: #FFFFFF;
	position: relative;
	left: 100px;
	bottom: 480px;
}

problems arise with the 480px bottom, cause thats exactly how much space is between the two elements, don't have time to fiddle with it to get it working right now, cause i gotta go. Will take a shot at it when i get home, unless someone has already helped you out before then.
 
0
Close
The links were pushing the content down. So how do you stop an element pushing another one? Float it over the top.

Code:
#links
{
	height: 480px;
	width: 100px;
	position: static;
	background-color: #CCCCCC;
float:left;
}

#textarea
{	
	height: 480px;
	width: 620px;
	background-color: #FFFFFF;
	position: relative;
	left: 100px;
}

I haven't checked this in IE yet so you'd better check.
 
0
Close
Rowan, thanks very much for your input.

I figured out that the 'float: left; command was needed in the #links section. But that was not enough...

I had to include 'top: 0px;' in the #textarea section and I had to change the positioning of the links section from static to absolute in order for the page to work in both Firefox and IE5/6.

Thanks again Rowan, all is well now. Now to commence with my learning of CSS positioning..........well, after the snooker :hehe:

Cheers,
J :tu::tu::tu:
 
0
Close
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back