NameSilo

CSS positioning issue...

SpaceshipSpaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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
•••
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
•••
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
•••
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back