Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1641 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Opera margin trouble

Thread title: Opera margin trouble
Closed Thread    
    Thread tools Search this thread Display Modes  
06-09-2006, 09:51 AM
#1
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old  Opera margin trouble

Basically, is there a way to reduce the margin size in opera only?

This is how the page looks in IE and Firefox - How it should do: Clicky

This is how it looks in Opera: Clicky #2

CSS:
Code:
div#welcome {
background:url(images/welcome_to.GIF) no-repeat top left #cbdd63;
width:476px;
height:162px;
margin-top:-9px !important;
margin-top:1px;
}
Any help greatly appreciated!

06-09-2006, 01:54 PM
#2
Omid is offline Omid
Status: I'm new around here
Join date: Jun 2006
Location: England
Expertise:
Software:
 
Posts: 17
iTrader: 0 / 0%
 

Omid is on a distinguished road

Send a message via MSN to Omid

  Old

You could use JS to sniff the browser, and then load a seperate stylesheet (the same one, but with a different definition for that div). Very long winded...

06-09-2006, 02:10 PM
#3
Andy is offline Andy
Andy's Avatar
Status: Senior Member
Join date: Dec 2005
Location: Essex, UK
Expertise:
Software:
 
Posts: 870
iTrader: 0 / 0%
 

Andy is on a distinguished road

Send a message via MSN to Andy

  Old

Try removing "margin-top:1px;"

06-09-2006, 02:38 PM
#4
Omid is offline Omid
Status: I'm new around here
Join date: Jun 2006
Location: England
Expertise:
Software:
 
Posts: 17
iTrader: 0 / 0%
 

Omid is on a distinguished road

Send a message via MSN to Omid

  Old

He's sorted it now..

06-09-2006, 02:51 PM
#5
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

I have indeed. There was a <p> inside the div, and I had to set "p.welcome { margin:0; }"

Taa anyway!

06-10-2006, 02:08 PM
#6
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old

I have margin problems in Opera that can generally be fixed by using XHTML strict.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed