Jump to content

Frames sizing problem: 2 fixed width and 1 variable width frame


FORWARDLEAN
 Share

Recommended Posts

Hi Guys, I need my HTML frameset to have 3 frames in total. 2 fixed width columns and 1 variable width column (from left to right). I have tried everything I can to prevent the far left frame from shrinking in size when the browser is reduced in size but I cannot find a way that this is possible. This is the website in question: http://www.forwardlean.co.uk There must be a simple solution to this, it's such a basic requirement. Surely someone can enlighten me?

<frameset rows="*" cols="230,850,*" framespacing="0" frameborder="NO" border="0"> <frame name="framenav"         id="framenav"         src="framenav.html"       noresize   target="framecontent"> <frame name="framecontent"      id="framecontent"      src="http://forwardleanblog.blogspot.com/"    noresize   target="_self"> <frame name="frameblank"      id="frameblank"         src="frameblank.html"       noresize> </frameset>

Link to comment
Share on other sites

try using noresize="noresize"
Tried using noresize="noresize" in the following frameset code but same problem, see updated site, any other ideas?
<frameset rows="*" cols="230,850,*" framespacing="0" frameborder="NO" border="0"><frame name="framenav"			id="framenav"			src="framenav.html" 		noresize="noresize"	target="framecontent"><frame name="framecontent"		id="framecontent"		src="http://forwardleanblog.blogspot.com/" 	noresize="noresize"	target="_self"><frame name="frameblank"		id="frameblank"			src="frameblank.html"></frameset>

Link to comment
Share on other sites

OK! right, such long time since i used frames, the noresize only prevents the user from grabbing the frameborder and changing size of column, it does not set it so that when the user resizes the browser the column will remain at width set in cols attribute, in fact it is the initial size of column that is set, that it will show when the browser is in full screen or wide enough to show total width of both columns, but when the browser is resized less than these widths, they will begin to shrink also.You can't use css styling for frameset or frame, if you could you could have used min-width:1080px to prevent shrinking less that 230 and 850 width columns, where if you where using iframes you could.Also using frames you would have to use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Edited by dsonesuk
Link to comment
Share on other sites

OK! right, such long time since i used frames, the noresize only prevents the user from grabbing the frameborder and changing size of column, it does not set it so that when the user resizes the browser the column will remain at width set in cols attribute, in fact it is the initial size of column that is set, that it will show when the browser is in full screen or wide enough to show total width of both columns, but when the browser is resized less than these widths, they will begin to shrink also.You can't use css styling for frameset or frame, if you could you could have used min-width:1080px to prevent shrinking less that 230 and 850 width columns, where if you where using iframes you could.Also using frames you would have to use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
Cheers for having a think about it, is there a solution though? Whatever it takes, I just need the site logo not to be cut off when the browser is shrunk :)
Link to comment
Share on other sites

Try using iframes instead, they work in the same principle in that you target the iframe with the page you wish to go to, plus you have more control over setting a fixed width for each iframe, that will be fixed, and won't shrink when user resizes browser width to almost nothing, instead you will get a scrollbar at bottom, which happens in non frames sites anyway.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...