28 users online (1 members and 27 guests)  

Thread: Css


  Results 1 to 7 of 7
  1. #1
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    Css

    Dean I should have listened to you from the start. I never really took the time to understand CSS and thought HTML was the easiest way and the why-learn-another-language-when-you-don't-need-too thing. I decided to take the time to learn it, and in two days I learned it. It's that easy! I've decided to redo half my site in it. It cuts bulky code in half! Any webmaster who's gonna call himself a webmaster needs to learn it. But I do have a question.

    What browsers support CSS?

    IE 4,5
    Netscape 5,6

    are these the only ones? I don't know even if Netscape 5 does.

    *I'm on refering to Netscape and IE browsers*

    on my page I'm basically using the class tag and the div tag.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    d00d, thats a trickier question than you think.

    ALL browsers from 4+ support CSS. However...they support them in different ways.

    We now have two standards. CSS1 and CSS2. they do not contradict each other at all. CSS2 id CSS1 with more stuff.

    Like everything in the HTML world, browser support is patchy as hell.


    I have a link to a browser-compatibilty chart... but lately I have joined something called the

    http://www.webstandards.org/upgrade/

    Browser Upgrade initiative. I got sick of sticking to standards and then trying an old browser on it and seeing it go tits-up on me.

    For good, old fashioned sticking to the rules, then believe it or not, Netscape Navigator 6 comes out on top. IE5.5 just makes up its own rules as it pleases. This is fixed in IE6.

    So..... heres what you originally asked for

    http://hotwired.lycos.com/webmonkey/reference/browser_chart/

    Welcome to the world of real webdesign.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    idea...

    if if I defined both the class and id tags:

    <div id="menubar" class="menubar">Whatever</div>

    would that be cross browser? I dunno, haha.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    no.

    A class is a set of rules to apply to a set of elements.

    An id is a unique identifier for CSS, JavaScript and the like.

    The cross-browser side of things usually comes with the <DIV> tag!

    Example -

    If I define a div like this -

    div.example {
    width: 100px;
    padding: 20px;
    }

    internet Explorer will make a div 100pixels wide, then add on an extra 20pixels to each side. This is incorrect.

    Netscape handles it properly and keeps the div 100pixels wide.

    this is just one example...there are hundreds...
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    so...

    lets say my page works around the clock divs. but most of em are like:

    .pagefont1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-decoration: underline;
    color: black;
    text-align: center;
    }

    <div class="pagefont1">testing</div>
    or
    <a class="pagefont1" href="www.?.com">testing</a>

    would this be cross browser?

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    yes. they should be fine. thats good usage of css.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #7
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466

    oh thank you! thank you!




Tags for this Thread