Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts

    CSS doesn't look right in Firefox, but OK in IE

    The CSS for the "Ad Banner Price List" <div> section on this page works OK in IE, but not in FF:

    http://www.mediamogulsweb.com/ad_banner.php

    Can anyone spot the problem?

    Thanks.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    blah@ tables
    change this open div tag
    Code:
    <div align="center" style="background-color:#ffffff;width:300px;height:350px;text-align:center;border:1px solid #000000">
    to this
    Code:
    <div style="margin:auto;background-color:#ffffff;width:300px;height:350px;text-align:center;border:1px solid #000000">
    word of advice, dont use single letter ids or classes, just gets confusing later on, and if you are going to use an inpage style sheet then what is the point of using inline styling?

  • #3
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Because when I apply the "design-as-I-go" method it is easier for me to turn my thought process directly into code when I use inline styles...I'm virtually incapabale of completely planning my designs ahead of time....the styles in the style section are used on other pages in my site, so they're easy to plug into the head section....I'd throw them into an external CSS file, but I haven't gotten around to it yet....it's basically a character flaw...

    Thanks, your revised code did the trick...Say, in FF, I noticed that my text almost touches the bottom border of the <div> section, but it's OK in IE....got a fix for that too?

    By the way, I gave up on the CSS alone for this page, and opted for the tables/CSS hybrid instead...I guess it's true that old habits are hard to break....
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    add padding-bottom:15px; to your inline style code for that same div, see if that helps
    P.S. your drop down menu breaks in FF, could be because dreamweaver put in some junk code that works ony for IE so either make your own or find another or just live with the fact that it doesn't work in FF

  • #5
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,773
    Thanks
    19
    Thanked 155 Times in 146 Posts
    Oh, I have the fix for the dreamweaver menu bar....I just recently added to it, so I'll need to add the fix again so it works in FF...

    thanks for the help, I'll see if the extra padding works....

    Edit: I just checked my menu bar and it works fine in FF....I'm wondering why you thought it was broken?...I'd be interested to know...
    Last edited by chump2877; 02-23-2005 at 10:57 AM.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •