CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 18th, 2012, 10:50 AM
timsharpe timsharpe is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Posts: 909 timsharpe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 Days 5 h 34 m 32 sec
Reputation Power: 0
Why is text under div?

Can someone please visit http://www.knowbrockville.com/?gtab=Auction in Firefox it looks fine but in IE the center content is under the right div why?

Thanks
Tim
__________________
Daily Deals from Kingston to Brockville and Cornwall Ontario. www.seawaydeals.com

Reply With Quote
  #2  
Old October 18th, 2012, 01:52 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
did you happen to have updated your script?
in both ie 9,8,7 #centerbox collumn is in between #left and #right, just like in firefox
__________________
PHP Tutorial

Reply With Quote
  #3  
Old October 20th, 2012, 05:37 AM
Heatleakz Heatleakz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Location: Stockholm, Sweden
Posts: 16 Heatleakz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 27 m 22 sec
Reputation Power: 0
Send a message via XFire to Heatleakz
Quote:
Originally Posted by timsharpe
Can someone please visit http://www.knowbrockville.com/?gtab=Auction in Firefox it looks fine but in IE the center content is under the right div why?

Thanks
Tim


Hi timsharpe,

The thing here is that Firefox and IE does not handle the page output in the same way. IE (usually less than version 8) needs special IE fixes in the CSS.

In your case it seems to be a positioning issue with IE, have you assigned relative positions to the left, right and centerized elements in your CSS?

For instance, you could do something like:

HTML
Code:
<div id="page-content">
<div class="left"></div>
<div class="center"></div>
<div class="right"></div>
</div>


CSS
Code:
* {
padding: 0;
margin: 0;
border: 0;
outline: 0;
}

#page-content {
width: 1200px;
margin: 0 auto !important;
}

#page-content .left, 
#page-content .center, 
#page-content .right {
position: relative;
float: left;
margin: 5px;
}

#page-content .left,
#page-content .right {
width: 220px;
}

#page-content .center {
width: 720px;
}


Hope this helped you.

Reply With Quote
  #4  
Old October 20th, 2012, 05:50 PM
Kravvitz's Avatar
Kravvitz Kravvitz is online now
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,894 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 2 Days 20 h 4 m 5 sec
Reputation Power: 4192
Welcome to DevShed Forums, Heatleakz.

Are you aware that reset rules that use the universal selector can cause problems with form controls in some browsers? I recommend you read these:
http://snook.ca/archives/html_and_css/no_css_reset/
http://meyerweb.com/eric/thoughts/2...rmal-weirdness/

By the way, new users who have "Reputation Power: 0" can't give you any reputation points yet.
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Reply With Quote
  #5  
Old October 21st, 2012, 07:12 AM
Heatleakz Heatleakz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Location: Stockholm, Sweden
Posts: 16 Heatleakz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 27 m 22 sec
Reputation Power: 0
Send a message via XFire to Heatleakz
Quote:
Originally Posted by Kravvitz
Welcome to DevShed Forums, Heatleakz.

Are you aware that reset rules that use the universal selector can cause problems with form controls in some browsers? I recommend you read these:
http://snook.ca/archives/html_and_css/no_css_reset/
http://meyerweb.com/eric/thoughts/2...rmal-weirdness/

By the way, new users who have "Reputation Power: 0" can't give you any reputation points yet.


Thanks for the warm welcome, Kravvitz!

Why do you think people take advantage of placing a simple CSS reset in their stylesheet?

Basically a CSS reset is always needed and should be placed in the top of the css. The resetting is for progressive enhancement and does not have to cause problems, in fact, most developers (even I) use properties later in the CSS to adjust the form elements. Why do you even think there's a possibility to use your own CSS instead of the browsers built in? Or do you want every site to look the same?

"Since different browsers have different parameters your site will end up looking different depending on what browser you use."

CSS Reset (Note: I'm not using the !important override value, values can be adjusted later in the CSS)
Code:
* {
margin: 0;
padding: 0;
border: 0;
outline: 0;
}


CSS properties for form elements
Code:
ul, ol {
padding: 3px;
margin: 5px;
}

form, input, button, select {
margin: 10px;
border: 1px;
}


It's called "Starting over from scratch".

I've done many websites with CSS resets and there hasn't been a problem for any of the visitors. However, if it happens that I've forgot the CSS reset and guess what! - The visitors starts complaining over that their IE browser doesn't have the same layout as their Chrome browser. How 'bout that?

Also, would you consider a CSS reset to decrease performance of a website? Then think over and stop using unneccesary elements or pictures that needs to be loaded.

PS: I'm not some "reputation troll" or some helpless person who needs reputation points to reclaim self confidence. In fact, I just think that reputation proves that I have given helpful answers and I don't see any problem with stating very simply and nice that people should not hesitate on giving me reputation points. Why do we even have reputation points?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Why is text under div?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap