Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Problem of Centeral content
Old 04-10-2009, 03:58 PM Problem of Centeral content
Novice Talker

Posts: 10
Trades: 0
Hello Guys,

Problem looks littel strange but i'm sure the following image will explain it

At All version of IE


SO as it seen it isn't central as it should be

wo wht is wrong of the code i've used

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>TITLE BLAH BLAH</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">


<style type="text/css">
body{padding: 20px;background-color: #000;}

div#nifty{
margin: 0 auto;
width: 770px;
background: #9BD1FA
}

b.rtop, b.rbottom{display:block;background: #000}
b.rtop b, b.rbottom b{display:block;height: 1px;
    overflow: hidden; background: #9BD1FA}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
</style>


</head>
<body>


<div id="nifty">

<b class="rtop">
<b class="r1"></b>
<b class="r2"></b>
<b class="r3"></b>
<b class="r4"></b>
</b>



blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah



<b class="rbottom">
<b class="r4"></b>
<b class="r3"></b>
<b class="r2"></b>
<b class="r1"></b>
</b>


</div>


</body>
</html>
thanks in advance
egturnkey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-10-2009, 05:01 PM Re: Problem of Centeral content
Novice Talker

Posts: 10
Trades: 0
thanks mr.spammer, i will report it to google adsense
egturnkey is offline
Reply With Quote
View Public Profile
 
Old 04-10-2009, 06:11 PM Re: Problem of Centeral content
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Looks centered to me in IE6 when I use your example code. So, the question becomes, what is REALLY in the rest of your code that would pull it off center ???
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-10-2009, 09:46 PM Re: Problem of Centeral content
Novice Talker

Posts: 10
Trades: 0
thanks lady , there was an error in doctype since i'm using dir="rtl" ( right to left ) since my website is in arabic

But after i've add doctype it works now perfect
egturnkey is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem of Centeral content
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24795 seconds with 12 queries