JoshJayK 16,648 Posted November 10, 2009 (edited) Okay so I'm making a 2 column webpage called "index.html" and I want the column on the right to be "mainwindow.html" and the column on the left to be "testsidebar.htm". I know for <frames> you would use src="mainwindow.html" to load that up within the frame, but is there anyway I could do this with two column webpages? This is what I currently have. <html> <head> <style type="text/css"> body, html { margin:0; padding:0; color:#000; background:"Floor.jpg"; } #wrap { width:750 px; margin:0 auto; background:#333; } #header { background:#CCC; } #mainwindow { float:right; width:84%; background:#999; } #sidebar { float:left; width:16%; background:#666; } </style> </head> <body> <p id="header" ></p> <p id="mainwindow" src="mainwindow.html"></p> <p id="sidebar" src="testsidebar.htm"></p> </body> </html> I know that src doesn't work with <p> but I don't know what else to put there. So far when I open up index.html it's just a blank box. Edited November 10, 2009 by Rdy2Killz Share this post Link to post
GhoztMan 53 Posted November 11, 2009 Is there any data for the mainwindow/testsidebar? Indeed, src doesn't work with <p>. I suggest using <BR> or one of it's dependencies.. Share this post Link to post
JoshJayK 16,648 Posted November 11, 2009 Yeah there is. I've been using <frame src="mainwindow.html"> for a while and it worked fine. What's <BR> Share this post Link to post
JanqeD 0 Posted November 11, 2009 <BR> is a break kinda like the affect you get when pressing enter. Not sure what he is referring to with <BR> and iframe lmfao they are in no way similar An alternative instead of iframe would be use divs you wouldn't use another document as a src but you would define whats in the div by <div id="mainwindow">Content here</div> than in your CSS define where the div will be located etc like that. Share this post Link to post
GhoztMan 53 Posted November 11, 2009 Refer to http://www.w3schools.com/TAGS/tag_br.asp for more info; Basically its a page break with no end. The undercarriage doesn't have a specified location. Share this post Link to post
XGhozt 410 Posted November 11, 2009 I recommend using div instead of paragraph, for content like that. Use p inside of a div, use the div to format the location, use the p to format the text. Share this post Link to post
JoshJayK 16,648 Posted November 11, 2009 Yeah I got it to work now. Instead of using columns I stuck with the frames, but then I added "frameborder="no" border="0" framespacing="0"" and now it works fine. Share this post Link to post
GhoztMan 53 Posted November 11, 2009 (edited) Yeah, sorry about the <BR> confusion. My html is a bit rusty. Edited November 11, 2009 by GhoztMan Share this post Link to post