Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1082 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Positioning Help...

Thread title: Positioning Help...
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
11-11-2005, 12:00 AM
#1
Techno is offline Techno
Techno's Avatar
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
 
Posts: 3,709
iTrader: 1 / 100%
 

Techno is on a distinguished road

  Old  Positioning Help...

Hey Guys,

I have done more of the site and I took some of your suggestions and "tabbed" my work . Anyway, I have done more and I believe I made a big progress tonight. But it has flaws. So here is what it is meant to turn out like and here is it's current status. Here are my queries and concerns:
  1. How do I move the "Clan News" floated table to the top near the other tops of tables?
  2. Why does the Clan News <div> have a background and border round it but the other two don't, even though I have used the same code for #rightbox and .divleftbox
  3. How do I get an outline around the content div?
  4. What’s wrong with my current code for the height and width, basically why won't it have a set height?

Thanks to anyone who helps .

11-11-2005, 12:03 AM
#2
Musoka is offline Musoka
Musoka's Avatar
Status: Member
Join date: Aug 2005
Location: US
Expertise:
Software:
 
Posts: 121
iTrader: 0 / 0%
 

Musoka is on a distinguished road

Send a message via AIM to Musoka Send a message via MSN to Musoka

  Old

Images arent uploaded, hard to see whats going on.

11-11-2005, 12:06 AM
#3
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

This is the correct link to the website: http://www.xbox360corner.com/clantemplate/ :P

11-11-2005, 12:10 AM
#4
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

Question 1:

Code:
#rightcontent
{
	padding: 0;
	width: <<<<<width of box
	top: 19px;
	left: rightpx;
	bottom: 21px;
	}

Question 2:

In your HTML document, change:
id="leftbox"
to
class="leftbox"


Question 3:

Code:
#content 
{
	float: center;   <<<<<remove 
 	width: 719px; 
	margin: 0;
	padding: 0;
	border-left: #insert_HEX 1px solid
	border-right: #insert_HEX 1px solid

	}
Question 4:

Your current code consists of no height value since your website can expand vertically to infinity. You need a width since your website is a fixed layout (cannot expand to cater for the browser).

11-11-2005, 12:28 AM
#5
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

Argh, don't use spacer images! Use a repeating background and margins on the images.

11-11-2005, 12:39 AM
#6
Musoka is offline Musoka
Musoka's Avatar
Status: Member
Join date: Aug 2005
Location: US
Expertise:
Software:
 
Posts: 121
iTrader: 0 / 0%
 

Musoka is on a distinguished road

Send a message via AIM to Musoka Send a message via MSN to Musoka

  Old

How do I move the "Clan News" floated table to the top near the other tops of tables?

Well, you have to set RightContent to float, not RightBox.

11-11-2005, 05:23 AM
#7
<Isurfr> is offline <Isurfr>
Status: Member
Join date: Aug 2005
Location: w3c
Expertise:
Software:
 
Posts: 193
iTrader: 0 / 0%
 

<Isurfr> is on a distinguished road

  Old

You shouldn't have to use the float: attribute
and should be able to position with absolute
realative positioning.

Use these attriubutes for positioning:


If you use the position:relative attribute to a div you will
have to make a duplicate with the same dimensions inside
of that div and set it to position:absolute; inside of that div
so you can position the content inside.


<div id="relative">
<div id="absolute"> (use the padding here)

<div id="content"></div>(use the margin here)

</div>
</div>

Originally Posted by Techno
[*]How do I get an outline around the content div?

border:0px solid #000000;
Add or subtract where the border is applied after
the border is assigned.


border-right-width:0px;
border-left-width:0px
borer-top-width:0px
border-bottom-width:0px


_|

11-11-2005, 02:00 PM
#8
Techno is offline Techno
Techno's Avatar
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
 
Posts: 3,709
iTrader: 1 / 100%
 

Techno is on a distinguished road

  Old

Tried all the things you suggested but the box won't float at the top... Can you help?

http://www.xbox360corner.com/clantemplate

11-11-2005, 02:50 PM
#9
Jhin is offline Jhin
Jhin's Avatar
Status: Member
Join date: Nov 2005
Location: Ontario, Canada
Expertise:
Software:
 
Posts: 303
iTrader: 0 / 0%
 

Jhin is on a distinguished road

Send a message via ICQ to Jhin Send a message via AIM to Jhin Send a message via MSN to Jhin Send a message via Yahoo to Jhin

  Old

Ok....I've gotten it to work...

One of the things I'd like to point out about CSS is that it's intended to reduce redundant information...so having all those margin & paddings set to 0 in each div ID is redundant, they can all be replaced by the code below:

Code:
* {
	margin:0;
	padding:0;
}
the * just like in searches indicates all...so everything will have a padding and margin set by default to 0, including the body and all child divs. Only when you then change the div padding/margin does it change.

I'm uploading the modified css I've added it here as a txt file. I just changed the style sheet so that should be all you need.

You will notice that I have empty ID Divs in the CSS, that is because I didn't want to remove them just in case you were going to change any styling there and all that was within them was the margin/padding:0 which is unnecessary

The real problem was that you needed a clearing div after your left floated div. In the page between your left and right content you should have a

Code:
<div id="leftcontent">blahblah</div>
<div id="clear"></div>
<div id="rightcontent">blahblah</div>
Since you wanted something to float on the right of it you need to clear right as below:

Code:
#clear{
	clear:right;
}

I also added an margin-bottom: 18px to the #rightbox as it was sitting ontop of your footer.

Hope this helps

Attached Files
File Type: txt style1.txt (1.2 KB, 1 views)

11-11-2005, 02:41 PM
#10
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

Put the rightbox BEFORE the leftbox.

<div id="rightbox"></div>
<div id="leftbox"></div>

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed