MisterJones
Posts: 30/125 |
Originally posted by DtTvB the Yoshi
Ouch!!!
Thanks for telling...
No problem. sorry if I sounded too harsh. I have been a little untolerant lately.
Originally posted by DtTvB the Yoshi
I don't know how to define cellpadding and spacing anyway, so that's my best way to do it.
http://www.w3schools.com/css/css_reference.asp
also
http://www.gurusnetwork.com/tutorial/css_intro/
Originally posted by DtTvB the Yoshi "Fifth, it seems your layout break the quote feature (it inserts me the whole topic)."
I think the post layout didn't.
It's may because of I typed <table>
and when you click the quote, it changes to
Makes sense. haha, silly acmlm board.
DtTvB the Yoshi
Posts: 53/60 |
Originally posted by MisterJones First of all, a table element, semantically speaking, should not be there at all.
Second, you are defining a class for a single element, rather than just styling an element with an id.
Third, span tag to define css? I will pretend it was that you mixed up some tag names.
Fourth, cell padding and cell spacing are styling elments; they should be under your style sheet, not as inline *gasp* attributes.
Fifth, it seems your layout break the quote feature (it inserts me the whole topic). Either that or something is wrong there in the quote functioning :/.
Ouch!!!
Thanks for telling...
I don't know how to define cellpadding and spacing anyway, so that's my best way to do it.
"Fifth, it seems your layout break the quote feature (it inserts me the whole topic)."
I think the post layout didn't.
It's may because of I typed <table>
and when you click the quote, it changes to <table> |
MisterJones
Posts: 29/125 |
First of all, a table element, semantically speaking, should not be there at all.
Second, you are defining a class for a single element, rather than just styling an element with an id.
Third, span tag to define css? I will pretend it was that you mixed up some tag names.
Fourth, cell padding and cell spacing are styling elments; they should be under your style sheet, not as inline *gasp* attributes.
Fifth, it seems your layout break the quote feature (it inserts me the whole topic). Either that or something is wrong there in the quote functioning :/. |
DtTvB the Yoshi
Posts: 52/60 |
My best way to do that is using tables instead of div's!
<html>
<head>
<style type="text/css">
#main {
position: absolute;
left: 0px; top: 0px;
right: 0px; bottom: 0px;
background-color: #ddd;
width: 100%; height: 100%;
}
</style>
<title>Page Title</title>
</head>
<body>
<table id="main" cellpadding="0" cellspacing="0"><tr><td>
I put some contents here.
</td></tr><table>
</body>
</html> |
MisterJones
Posts: 26/125 |
Originally posted by KP Hello, I am trying to make a div stretch through the whole page. I put some positioning css and put the left, right, top, and bottom positions to 0px. It works in firefox and stretches the whole page, but in internet explorer the right one doesn't seem to work. Here's the code I'm working with:
In internet explorer the div stretches to the left, top and bottom but on the right I can still see a white bar from the background color in the body. Does anyone know how I can get this to work in Internet explorer since it already works in firefox?
I might be an ass, but why would you use a div to cover the entire page? Why does the body have inline styling using the deprecated bgcolor attribute?
Also, you might want to use margins, and avoid absoulte positioning if you really want it to be a liquid layout.
I am quite surprise height is working for you. |
FreeDOS +
Posts: 469/1312 |
Try IE7, it's a script that tries to fix all the stupid HTML/CSS rendering mistakes Microsoft did in IE5.0-6.0, it works pretty will. |
Sukasa
Posts: 793/2068 |
Try adding "margin-right:0px;" to the bottom of that CSS. I'm pretty sure that will work in IE. |
KP
Posts: 23/30 |
Hello, I am trying to make a div stretch through the whole page. I put some positioning css and put the left, right, top, and bottom positions to 0px. It works in firefox and stretches the whole page, but in internet explorer the right one doesn't seem to work. Here's the code I'm working with:
<body bgcolor="#ffffff">
<style>
div { position:absolute;
left:0px;
top:0px;
right:0px;
botton:0px;
background-color:#dddddd;
width:100%;
height:100%;
}
</style>
<div></div>
In internet explorer the div stretches to the left, top and bottom but on the right I can still see a white bar from the background color in the body. Does anyone know how I can get this to work in Internet explorer since it already works in firefox? |
Acmlm's Board - I3 Archive - Programming - CSS Positioning
ABII
Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper
Page rendered in 0.004 seconds; used 359.25 kB (max 404.72 kB) |