Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-13-2008, 10:05 PM   PM User | #1
SSamiK
New to the CF scene

 
Join Date: Jul 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
SSamiK is an unknown quantity at this point
ie6 rendering problem

Hi, and thanks for reading my post!

I'm currently trying to modify the default Wordpress template, Kubrick, to fit my needs. I've gotten the page to look right in Firefox, Opera and IE7, but in IE6 it looks rather ugly, and I can't figure out why this is. The text in the body of my site should be centered, but in IE6 it shows to the right.
Any tips on how to do something with that?

There is, according to w3c's css validator, one error in my css and some warnings saying "same colors for color and background-color". I doubt they are causing the problem, but they would be nice to get rid of...

Please look at www.fisker-kokk.no to inspect the problems.

I'll be very thankful for any input!
SSamiK is offline   Reply With Quote
Old 07-14-2008, 08:25 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Check you CSS file and remove duplicates like
Code:
.widecolumn {
	/*float: left;*/
	padding: 0 0 20px 45px;
	/*margin: 0px 0 0;*/
	width: 450px;
	margin:0 auto;
	}

.widecolumn {
	padding: 10px 0 20px 0;
	/*margin: 5px 0 0 150px;
	width: 450px;*/
	}
BTW, the above should center your text in IE also.

If we set a width(which is less than it's parent) and then set an auto value to the margin-left and margin-right, then it'll get align centered. In your case that float is completely unnecessary.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

Last edited by abduraooft; 07-14-2008 at 08:28 AM..
abduraooft is offline   Reply With Quote
Users who have thanked abduraooft for this post:
SSamiK (07-14-2008)
Old 07-14-2008, 09:09 AM   PM User | #3
SSamiK
New to the CF scene

 
Join Date: Jul 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
SSamiK is an unknown quantity at this point
Thanks, that seemed to fix the poblems that IE6 was having!
I must have misinterperted something when removing a sidebar, witch lead to duplicate .widecolumn instances. Anyway, thanks a million abduraooft!
SSamiK is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:05 AM.


Advertisement
Log in to turn off these ads.