Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [solved] Trouble with CSS in Firefox *possible 56k warning* [solved]  (Read 766 times)

0 Members and 1 Guest are viewing this topic.

Source

Internet Tough Guy.
[solved] Trouble with CSS in Firefox *possible 5...
« on: January 25, 2007, 09:08:36 pm »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
I'm having a little bit of trouble in regards to how Firefox handles the "width" function in CSS. It just doesn't seem to work. Here's an example snippet of code that I'm using:

Code: [Select]
<style type="text/css">
a {width:240px;background:#FF0000}
</style>

Here's the result in FF and IE7:





As you can see, FF didn't work like I wanted it to. Anyone know what I should do?
« Last Edit: January 25, 2007, 10:43:37 pm by Cronian »
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/

Dayjo

shut the fuck up donny.
Re: Trouble with CSS in Firefox *possible 56k wa...
« Reply #1 on: January 25, 2007, 09:32:53 pm »
  • hungry..
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3602
You have to make it a block element first:

a{
  display: block;
}

Only block elements can have their width set.
« Last Edit: January 25, 2007, 09:34:34 pm by Dayjo »
Logged
  • My Blog

Source

Internet Tough Guy.
Re: Trouble with CSS in Firefox *possible 56k wa...
« Reply #2 on: January 25, 2007, 10:43:20 pm »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Thanks, it works perfectly!

*lockage*
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/

Dayjo

shut the fuck up donny.
Re: [solved] Trouble with CSS in Firefox *possib...
« Reply #3 on: January 25, 2007, 10:46:28 pm »
  • hungry..
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3602
No problem

Edit: oops, *IN AFTER THE LOCK?*
Logged
  • My Blog
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.035 seconds with 45 queries.