Developer forum

Forum » Templates » Flexible width and max-width

Flexible width and max-width


Reply

Does anybody in here have som experience widt rebuilding a traditional top left navigation template, so that the site appears with flexible width - but only until it reaches 1400 px of width.

 

I have tried, but with a lot of trouble. The site should have been build with div-tags instead, I guess. But because it's at temporary site, it would be too expensive to rebuild it all to div-tags.

 

But before I give up, I will ask all you clever people if someone can help me :-)


Replies

 
Reply

I don't know if it's possible to do without javascript:

 

if (document.getElementById("MainContainer").offsetWidth > 1400){

    document.getElementById("MainContainer").style.pixelWidth = 1400;

}

 

This could hadly be classified as a Dynamicweb exclusive issue, so you may receive a better answer than what I'm capable of through some other HTML resource in the web.

 
Reply

Hi Lise

 

I think it will be hard to obtain with a none div website.

But who am I to say, I've never tried ;)

 

Here is an example:
http://css-tricks.com/examples/PerfectFluidWidthLayout/

 

// Dammark

 

You must be logged in to post in the forum