Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 09-10-2007, 04:21 PM total confusion
Novice Talker

Posts: 8
Name: debra grant
Trades: 0
heres the page without the sidebar as an include
heres the page with the sidebar as an include

why is the include pushing the content div down the page?
debrag is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-10-2007, 06:05 PM Re: total confusion
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
In the second one, when you view source there is an extra div compared to the first one near the start of the sidebar area.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-10-2007, 06:13 PM Re: total confusion
Novice Talker

Posts: 8
Name: debra grant
Trades: 0
so should I remove the div tags that surround the sidebar content in sidebar.php?

Edit tryed that but the sidebar just covers the whole of the container div

Last edited by debrag; 09-10-2007 at 06:22 PM..
debrag is offline
Reply With Quote
View Public Profile
 
Old 09-11-2007, 03:22 PM Re: total confusion
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You have some real layout issues there to contend with. I'd help, but I can't possibly dig into that until I get home.

The page is never going to validate as even XHTML Transitional, you've got too much old deprecated code in there, like 'align="center"' and <center>. CSS should be used for that.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-12-2007, 08:46 AM Re: total confusion
Novice Talker

Posts: 8
Name: debra grant
Trades: 0
joder has helped, but don't think the include was used as it was html not php. I therefor changed it to php and added the code but still the content is pushed to the bottom.

That extra <div> is part of sidebar.php and if I remove that and the </div> that goes with it, the sidebar goes across the whole page as mentioned above.

link 1 // link 2
debrag is offline
Reply With Quote
View Public Profile
 
Old 09-12-2007, 02:54 PM Re: total confusion
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
The code I sent you, you can cut part out and put it in the file to be included. I removed all the extra <div>'s and none to be added because it is an include file.

You can include an html as well as a php file.
joder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to total confusion
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28065 seconds with 12 queries