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
Can't figure this out. Can someone take a look please?
Old 02-18-2008, 01:00 AM Can't figure this out. Can someone take a look please?
Webmaster Talker

Posts: 626
Trades: 0
I've been working on a new layout. I had it working great, then I tried to get sIFR working. I couldn't get it working and I removed the code but broke my layout in the process somehow.

I can't figure out why but the green box should have a margin to the left of it like the blue one does. It shows correctly in FF but not in IE 6.

Can anyone please take a look and see where I messed it up. The CSS and HTML are all on the same page right now.

http://74.63.67.148/~sharedsite/index.html

Last edited by jim.thornton; 02-18-2008 at 02:02 AM..
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-18-2008, 05:36 AM Re: Can't figure this out. Can someone take a look please?
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
wait ignore what this said before.

Code:
.moduletable-orange {
 width: 32.7%;
 height: 265px;
 margin: .7% 0;
 float: left;
 background: #fc8a00 url(images/bg-orange.gif) repeat-x top left;
 position: relative;
}
should be:

Code:
.moduletable-orange {
 width: 32.7%;
 height: 265px;
 margin: .7% 0 .7% .8%;
 float: left;
 background: #fc8a00 url(images/bg-orange.gif) repeat-x top left;
 position: relative;
}
You just missed out a couple of the details on the margin for the orange box.

To save confusion i suggest you use:
Code:
margin-left: **px;
margin-right: **px;
margin-top: **px;
margin-bottom: **px;
that way its easier to tell which number does which margin, just easier to troubleshoot that way. You don't have to if you dont like that idea, just something to think about.

P.S I love the template dude.

Last edited by Joshy D; 02-18-2008 at 05:45 AM..
Joshy D is offline
Reply With Quote
View Public Profile
 
Old 02-18-2008, 01:45 PM Re: Can't figure this out. Can someone take a look please?
Webmaster Talker

Posts: 626
Trades: 0
that's not it... I was thinking the same thing, and have tried that.

margin: top right bottom left;

I'm know what the numbers mean, and my intention on the orange is to have a .7% margin on the top and bottom and no margins on the left or right. The margin is set on the green and blue for the left but not the right.

I've tried extending the margin statements but it doesn't work.

Last edited by jim.thornton; 02-18-2008 at 01:54 PM..
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 02-18-2008, 01:53 PM Re: Can't figure this out. Can someone take a look please?
Webmaster Talker

Posts: 626
Trades: 0
BTW, thanks for the compliment!
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 02-18-2008, 02:05 PM Re: Can't figure this out. Can someone take a look please?
Webmaster Talker

Posts: 626
Trades: 0
Here is what is REALLY weird... When I look at the page in my local browser, it works perfectly in IE and FF. When I upload it to the server and look at it there, the left margin on the green box only disappears.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 02-18-2008, 02:21 PM Re: Can't figure this out. Can someone take a look please?
Webmaster Talker

Posts: 626
Trades: 0
That is sooo weird!

I changed the margin to go on the right of the orange and green instead of the left side for the green and the blue. It seems to be working now.

I have another question though: I tried using sIFR for the Impact font inside the offers box. It didn't work so well, and I couldn't get it working properly. I couldn't get a transparent background for the font, it stayed white. Right now I just have it set to use the Impact font but if someone doesn't have it on their system then it will look awful.

Any ideas how I can either get sIFR working correctly, or just use a different technique?
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 02-18-2008, 03:33 PM Re: Can't figure this out. Can someone take a look please?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
There are forums for sIFR and there is plenty of documentation. However, I suspect you just need to set wmode=transparent for the font - something like this in the sifr-config.js file:

sIFR.replace(FreestyleScript, {selector: '#header h6', wmode: 'transparent'
,css: '.sIFR-root {text-align: right;, font-weight: bold;, color: #d00000;, background-color: #ffffff;, display: inline;}'});
__________________
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
 
Reply     « Reply to Can't figure this out. Can someone take a look please?
 

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