Jump to content
  • 0

Разметка в три колонки


ONIX
 Share

Question

Имеется вот такой вот макет разметки, в три колонки с футером и хэдером. Пока некорректно отображается, что нужно подправить, чтобы правильно отобразилось в IE6,7 FF2 Opera9 ?

index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Untitled Page</title>

<link rel=stylesheet href=default.css type=text/css />

</head>

<body>

<div >

<!-- #include file="header.html" -->

</div>

<div style="display:inline">

<div id="left" ><!-- #include file="menu.html" --></div>

<div id="right" ><!-- #include file="content.html" --></div>

</div>

<br />

<div ><!-- #include file="footer.html" --></div>

</body>

</html>

default.css

body

{

padding:0;

width:100%;

height:100%;

margin:0;

}

html

{

font-family:Arial;

line-height: 150%;

}

#header

{

background-color:Gray;

}

#left

{

float:left;

width:20%;

background-color:Green;

}

#right

{

float:right;

width:80%;

/*background-color:Aqua;*/

}

#footer

{

background-color:Lime;

}

#text

{

overflow:hidden;

float:left;

width:80%;

background-color:Fuchsia;

}

#announcements

{

overflow:hidden;

float:right;

width:20%;

background-color:Maroon;

}

header.html

<div id="header">

<p>Header

</div>

footer.html

<div id="footer">

<p>Footer

</div>

menu.html

<div id="menu">

<p>Menu

</div>

content.html

<div style="display:inline; float:right; overflow:hidden">

<div id="text"><!-- #include file="text.html" --></div>

<div id="announcements"><!-- #include file="announcements.html" --></div>

</div>

text.html

<div id="text">

<p>Text

</div>

announcements.html

<div id="announcements">

<p>Anouncements

</div>

Edited by ONIX
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy