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.

Coding Forum


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



Reply
CSS Problems with opera
Old 06-13-2003, 10:13 AM CSS Problems with opera
Junior Talker

Posts: 4
Trades: 0
I am re-designing a website, my new design is on display at

http://www.firstkmh.co.uk/newdesign/elite.html

I have done all the positioning using CSS and it looks fine in IE, but if I look at it in Opera (V7.11) then all the positions are out of proportion and it looks messed up!!

Can you guys help??

Cheers
welsh_boy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2003, 11:49 PM
RedMage's Avatar
Average Talker

Posts: 27
Location: ROY UTAH USA
Trades: 0
Opera in IE interpret CSS differently. You have to specify every aspect of every object to get them to be the same (MARGINS, PADDINGS, LINE-HEIGHTs, everything) or you may have to have a different CSS included for each browser.
RedMage is offline
Reply With Quote
View Public Profile
 
Old 06-14-2003, 07:40 AM
Junior Talker

Posts: 4
Trades: 0
ok thanks..

Could point out an example in my css code and how to fix it by any chance?
welsh_boy is offline
Reply With Quote
View Public Profile
 
Old 06-14-2003, 03:31 PM
RedMage's Avatar
Average Talker

Posts: 27
Location: ROY UTAH USA
Trades: 0
Specify your margins like this:
Code:
 MARGIN: 0PX 0PX 0PX 0PX <!-- ORDER IS TOP RIGHT BOTTOM LEFT -->
And your paddings like this
Code:
 PADDING: 0PX 0PX 0PX 0PX <!-- ORDER IS TOP RIGHT BOTTOM LEFT -->
Avoid using "em" measuring units they will very alot between fonts (that means different OS's, Browsers different measurment), use pixels (PX).

Specify Font-Sizes in Pixels (PX), pixels are fixed, will always be the same, should use them most often (in everything),"x-small" will vary from browser, resolution etc.

Few suggestions.
That's a huge CSS include, might want to trim it down, make general declars and add specifics to elements when needed, IE
Code:
DIV  { FONT: 9PX/9PX "ARIAL"; BACKGROUND: TRANSPARENT }
<DIV STYLE="BACKGROUND: #FFFFFF"> </DIV>

Last edited by RedMage; 06-14-2003 at 06:28 PM..
RedMage is offline
Reply With Quote
View Public Profile
 
Old 07-02-2003, 05:14 PM
c2k
c2k's Avatar
Skilled Talker

Posts: 72
Location: Germany
Trades: 0
IE doesn't pay as much attention to correct CSS as Opera or Mozilla do. So when writting your code always pay attention to the look on both browsers.

IE is known to support messed up code ;D
c2k is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Problems with opera
 

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