Prev | Current Page 390 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

For each frame
element, the src attribute defines the web page that will be displayed inside the frame.




PAGE LAYOUTS WITH CSS
307
7
To change the alignment of the frames and split the browser window horizontally, replace
the cols attribute in the frameset element with a rows attribute:

To add more frames in either case, just add more frame elements, but ensure that your
cols or rows values don??™t add up to more than 100%.
You can also nest framesets, to create a combination of columns and rows:







The following list describes some of the attributes that can be added to the frame element,
most of which amend the look of the frames:
frameborder: This attribute defines whether the frame??™s border is displayed or
not??”via a value of 1 or 0, respectively. Turning off the frame borders prevents
users from resizing frames.
THE ESSENTIAL GUIDE TO CSS AND HTML WEB DESIGN
308
marginheight and marginwidth: These define the margins within the frame and are
best set to 0; page content padding should be defined in CSS.
scrolling: This attribute sets parameters for the use of scroll bars??”it can be set to
yes (scroll bars always on), no, or auto (scroll bars appear if required).


Pages:
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402