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
css layout help - includes
Old 09-09-2007, 12:47 PM css layout help - includes
Novice Talker

Posts: 8
Name: debra grant
Trades: 0
I use the code:

Code:
<?php include("xxx.php"); ?>
in a layout here but for some reason the sidebar (the include) is placed down the page.

The style is in the <head></head> on the main page and no head or body tags are in the sidebar file, the sidebar is here

Is there a problem with the layout or the style?

I am wanting the layout to be the same as the other pages on the site.
debrag is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-09-2007, 10:15 PM Re: css layout help - includes
Webmaster Talker

Posts: 626
Trades: 0
The reason is most likely caused by the width defined for each box. put a color background to each of them (different), maybe orange and blue, then see if they over lap at all.

You can probably just shrink the content area by a few pixels and get it.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 09-09-2007, 11:14 PM Re: css layout help - includes
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
A good debugging tool is the Web Developer add-on for Firefox.
https://addons.mozilla.org/en-US/firefox/addon/60

Under Information -> Display Div Order you can see what you might want to work on. It also shows the extra div's the tool your using to develop with added.

The information under the Outline menu is also valuable.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-10-2007, 04:44 AM Re: css layout help - includes
Novice Talker

Posts: 8
Name: debra grant
Trades: 0
so I've changed the width and the sidebar has moved up a bit.
I've also used the web developer and no extra div's are being displayed or at least I can't see them.

here

I think I may just use iframes but can everyone view them?

Last edited by debrag; 09-10-2007 at 05:04 AM..
debrag is offline
Reply With Quote
View Public Profile
 
Old 09-10-2007, 10:50 AM Re: css layout help - includes
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Sorry debrag, but it is hard for me to debug the source. I noticed in the sidebar section there are too many opening div's that don't have the corresponding closing /div. I removed one <div id="sidebar"> and one <div align="left"> and the sidebar now aligns near to the top of the element.

I would suggest indenting your source where you can see where one element begins and ends.

Also in the head, you have two section of CSS. One is not commented out.

Hope this helps.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-10-2007, 02:31 PM Re: css layout help - includes
Novice Talker

Posts: 8
Name: debra grant
Trades: 0
so i removed the <div id=sidebar> from the sidebar.php page as well as one of the <div align="left"> tags.

On the live site the sidebar starts when it is meant to but only the first part of it is there.
debrag is offline
Reply With Quote
View Public Profile
 
Old 09-10-2007, 05:48 PM Re: css layout help - includes
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Later this evening I may have some time to look at it. Unless someone does it before me.
joder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to css layout help - includes
 

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.28258 seconds with 12 queries