Jump to content
Heads Up! This website is no longer maintained, if your a member from our era, consider joining the discord to say hello.
Sign in to follow this  

HTML/CSS

Recommended Posts

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 by Rdy2Killz

Share this post


Link to post

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

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

<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

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

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

Yeah, sorry about the <BR> confusion. My html is a bit rusty. >.<

Edited by GhoztMan

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×