Click to See Complete Forum and Search --> : layout issue
andyshep
03-04-2005, 11:47 AM
hi all
im doing a webpage that has a lot more content than the other pages in the site ( doubles the page length ).
i am trying to keep the pages approximately the same size the content im talking about is just text.
i dont really want to have a div that scrolls the content.
i dont want to use an iframe since ( not sure about this ) search engines wont index it properly.
also considered using div layers and using buttons or text links to make the layers visible/invisible.
dont want to use javascript for popups either.
anyone got any suggestions on how i could do this?
andy
jettlarue
03-04-2005, 05:07 PM
i dont see why you would want the content of the pages to be the same...or why you need all of the content submitted to search engines. thats what meta and title does. if you wanted your content in a separate file just make a content.js file that has the following.
var content("your content"); //your content to edit
//do not edit the following.
document.write(content);
then in your page put down
<!-- start content -->
<SCRIPT src="content.js" type="text/javascript" id="content">
</SCRIPT>
<!-- end content -->
hope this helps a bit
the tree
03-05-2005, 03:16 AM
Jetlarue, that's very helpful but I don't see where he said that he wanted the content consistent, I'm pretty sure he was talking about layout
Andyshep, if you used floating divs for layout then they would automaticaly size to fit the content, so if you set thier width then they would grow downwards without screwing up your colums.
You might also want to experiment with fixed positioning to keep a footer at the bottom of the screen.
You're right not to use an iframe, not only do they annoy search engines, thay also make bookmarking a hassle and alot of non-graphical browsers hate them.
andyshep
03-05-2005, 08:45 AM
i dont want the content of the pages to be the same!
i have a home page,clients,contact,news pages, the pages apart from the home page have limited content at this time.
ive attached a gif image of the basic layout.
as you can see theres not an awful lot of space on the right for content but for all pages apart from the home page there is plenty.
when ive put the text in for the home page the page is quite a bit longer/taller and leaves me with too much whitespace under the girl image.
considering moving some of the content to go underneath the image
on the left.i will try this and see what my client thinks. but was looking for alternatives i.e as i suggested earlier.
tree
thanks for clearing up the iframes as far as search engines go.
i had a feeling they would.
andy
p.s. while im here what do you think to the layout....?