
Frames, HTML and Resizing Windows?Dave, I have read your Creating Cool HTML 4 WebPages and gotten into basic web-designing. I have one pestering question though. Say you have two frames, is there any way you can prevent the frames resizing if you resize your window? For instance, a maximized window viewing these frames is fine, but when it is not maximized it may cut off some information and pop that annoying scrollbar next to it. It can, anyway, disrupt ease and fluidness of the site. I haven't monkeyed around with a frames-based design for quite a while so I'll have to scrounge through my newer edition of the book, Creating Cool Web Sites with HTML, XHTML and CSS, to remind me of the details of the frame tags. The basic frame layout is specified with frameset, and then each specific pane of the frame design is specified with a frame tag. A typical layout: <frameset cols="30%,70%">
<frame src="leftside.html" />
<frame src="rightside.html" />
</frameset>
To lock in frame sizes, you need to change the parameters of the cols or rows. Try using a specific pixel size for one of the parameters and an asterisk (*) as the other parameter. Something like this: <frameset cols="300,*"> I think you'll find that does what you seek.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.
Categorized:
HTML and CSS
(Article 3902)
Tagged: Previous: Firefox as an RSS aggregator or reader? Next: Can eBay help me check Equifax credit scores? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. Dave, I have used frames for my website and everytime I click on a link the next page will only open in one of the small frames and I am not sure what to do to fix this, do you have any suggestions? Thank you, I really appreciate your help! Posted by: Katie at August 13, 2007 10:02 AMKatie, that's a common frames problem. The key is that on the links you have that are supposed to replace *everything* rather than just the contents of that particular "frame" of your design, you need to include the attribute target="_top" that'll do the trick! Posted by: Dave Taylor at August 13, 2007 9:43 PMHi Dave, I have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|