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,471
There are 1686 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Coding Help

Thread title: Coding Help
Closed Thread    
    Thread tools Search this thread Display Modes  
09-12-2005, 08:34 PM
#1
Aaron Michael is offline Aaron Michael
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 392
iTrader: 0 / 0%
 

Aaron Michael is on a distinguished road

  Old  Coding Help

Okay all my codes have past the validations but i was wondering what does the content like stick to the layout..

Not Maximized -


Maximized -

Attached Files
File Type: txt code.txt (8.4 KB, 5 views)

09-12-2005, 08:46 PM
#2
hjalmar is offline hjalmar
Status: Senior Member
Join date: Nov 2004
Location: Sweden
Expertise:
Software:
 
Posts: 857
iTrader: 11 / 100%
 

hjalmar is an unknown quantity at this point

  Old

-"absolute: With a value of "absolute" the element can be placed anywhere on a page. The element's position is specified with the "left", "top", "right", and "bottom" properties"

i would make a container for the whole page then center it so you can position the content with absolute in the container.

09-12-2005, 08:49 PM
#3
Aaron Michael is offline Aaron Michael
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 392
iTrader: 0 / 0%
 

Aaron Michael is on a distinguished road

  Old

Originally Posted by steNad
-"absolute: With a value of "absolute" the element can be placed anywhere on a page. The element's position is specified with the "left", "top", "right", and "bottom" properties"

i would make a container for the whole page then center it so you can position the content with absolute in the container.

Now what is this CONTAINER thing you speaker of im fairly new to coding templates but i've done plenty of CSS coding on myspace.com .. Please explain some more.

09-12-2005, 09:51 PM
#4
opserty is offline opserty
Status: I love this place
Join date: Jan 2005
Location: UK, Birmingham
Expertise:
Software:
 
Posts: 606
iTrader: 0 / 0%
 

opserty is on a distinguished road

Send a message via MSN to opserty

  Old

Why do you have a table between the </head> and <body> tags?

09-12-2005, 10:24 PM
#5
Aaron Michael is offline Aaron Michael
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 392
iTrader: 0 / 0%
 

Aaron Michael is on a distinguished road

  Old

Originally Posted by opserty
Why do you have a table between the </head> and <body> tags?

I honestly couldn't tell ya possibly something i miss lol, can anyone please tell me what a container is an explain it please.

thanks in advance

09-13-2005, 09:22 AM
#6
Julian is offline Julian
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
 
Posts: 5,572
iTrader: 0 / 0%
 

Julian is on a distinguished road

  Old

body {
text-align: center; /* centers the container */
}

#container {
margin: 0 auto; /* Centers container horizontally */
width: 750px; /* must specify a width */
text-align: left; /* left aligns containers elements, IE compliance */
}

#header {
/*header goes in here */
}

#content {
/*content goes in here */
}

#nav {
/* nav attributes go in here */
}

#footer {
/*footer goes in here */
}

XHTML:
<html>
<head>
<title>example of a container wrapping div</title>
</head>


<body>
<div id="container"> <!-- container wraps around all of the content, it enables the centering of the content as a whole -->
<div id="header">
<!-- Header stuff goes here -->
</div>
<div id="content">
<!-- Content stuff goes here -->
</div>
<div id="nav">
<!-- Navigation stuff goes here -->
</div>
<div id="footer">
<!-- Footer stuff goes here -->
</div>
</div> <!-- End of container div -->
</body>
</html>

09-13-2005, 03:34 PM
#7
Aaron Michael is offline Aaron Michael
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 392
iTrader: 0 / 0%
 

Aaron Michael is on a distinguished road

  Old

Can you explain what the container does ?

09-14-2005, 09:25 AM
#8
Julian is offline Julian
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
 
Posts: 5,572
iTrader: 0 / 0%
 

Julian is on a distinguished road

  Old

Originally Posted by Julian
<div id="container"> <!-- container wraps around all of the content, it enables the centering of the content as a whole -->
Yes ^

09-14-2005, 10:15 AM
#9
Aaron Michael is offline Aaron Michael
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 392
iTrader: 0 / 0%
 

Aaron Michael is on a distinguished road

  Old

will i have to tell it where the content has to go ?

09-15-2005, 08:36 AM
#10
Julian is offline Julian
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
 
Posts: 5,572
iTrader: 0 / 0%
 

Julian is on a distinguished road

  Old

No, the container just wraps around ALL OF THE CONTENT. It wraps around your header, content and footers. It wraps around them so you can enable your content to be centered on a page.

The container is simply a vessel that carries everything else so everything can be positioned together wherever you need it.

Closed Thread    


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

  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