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
positioning - pants in IE - help
Old 03-01-2008, 01:47 PM positioning - pants in IE - help
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
Hi, I have a calendar built CSS.
I have positioned each month so i get 4 in a row - works in Firefox but not in IE.

FireFox:

IE:

Code:
Code:
#calendar_month_1 {
    position:relative;
    left:-10px;}
    #calendar_month_2 {
    position:relative;
    top:-152px;
    left:190px;}
    #calendar_month_3 {
    position:relative;
    top:-304px;
    left:390px;}
    #calendar_month_4 {
    position:relative;
    top:-474px;
    left:590px;}
    #calendar_month_5 {
    position:relative;
    top:-456px;
    left:-10px;}
What am i doing wrong???

thanks
Rachel
__________________

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

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
 
Register now for full access!
Old 03-01-2008, 04:49 PM Re: positioning - pants in IE - help
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I think this has to do with the negative positioning. I know IE doesn't handle negative margins very well, so I imagine it doesn't handle negative positioning very well either.
I would probably float the divs. Be sure to give all the divs a specified width and float them all to the left. After each set of 4, clear the float.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 03-01-2008, 06:38 PM Re: positioning - pants in IE - help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I agree, using all that positioning and negative margins is asking for trouble. Use floats instead.
__________________
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 03-02-2008, 07:44 AM Re: positioning - pants in IE - help
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
third opinion for floats.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-02-2008, 08:06 AM Re: positioning - pants in IE - help
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
I agree also i guess.
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 03-03-2008, 06:18 AM Re: positioning - pants in IE - help
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
Gosh that was a really big help - Ive now floated them - looking good, all apart from October - wtf? whys it over there??
Comes up like this in Firefox and IE:


october is month number 10, heres the code:
Quote:
#calendar_month_8 {
float:left;}
#calendar_month_9 {
float:left;}
#calendar_month_10 {
float:left;}
#calendar_month_11 {
float:left;}
#calendar_month_12 {
float:left;}
Any reason why it isnt coming out okay??
Thanks
Rachel
__________________

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

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Old 03-03-2008, 02:23 PM Re: positioning - pants in IE - help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You have no defined width. When you float an element, it MUST have a defined width.
__________________
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 03-05-2008, 12:10 PM Re: positioning - pants in IE - help
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
Quote:
Originally Posted by LadynRed View Post
You have no defined width. When you float an element, it MUST have a defined width.
Thanks for that - It seems to be working now - well i have a height issue now - but thats coz some months are longer than others...
Many thanks for your help!!!
__________________

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

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Reply     « Reply to positioning - pants in IE - help
 

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.29769 seconds with 12 queries