CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15
  1. #1
    Join Date
    May 1999
    Location
    New Jersey, USA
    Posts
    369

    Angry Am I the only one that thinks CSS sucks?

    Am I the only one that thinks CSS sucks? Actually, it seems to be the stupid Browers. Does anyone here seriously and successfully use CSS in their large projects?

    Thanks

  2. #2
    Join Date
    Jan 2002
    Location
    Helsinki, Finland
    Posts
    99
    All I can answer: CSS doesn't suck at all.

    Cascading StyleSheets are very efficient way to define style of the document. If one writes strict XHTML or XML, he/she knows that there aren't other ways for styling than using CSS/XSL.

    If you're having a particular problem, you can post it here and I'm pretty sure that a solution is found.
    Zvona - First aid for client-side web design

  3. #3
    Join Date
    Jun 2002
    Posts
    8
    Add to the fact that one can use external CSS and then change around a site's colors, and layout with editing just one page. External CSS are basically made for large projects.

  4. #4
    Join Date
    May 1999
    Location
    New Jersey, USA
    Posts
    369

    External CSS? Site Colors?

    Have you ever set your site's background color and text color in the Body using css, and view it in Netscape < 5? The bgcolor works okay, but It does not even inherit the text color to the child elements on the pages. You have to leave the text attribute on the body tag so what is the point? There are surprisingly few css styles that are supported by either NN < 5 or and IE < 6. I do not know about 6. The browsers just do not seem to handle css consistently or correctly. Perhaps you can help me by letting me know what css styles you work with because there is not much css that seems to work consistently on both NN and IE. What styles do you mostly stick with?

  5. #5
    Join Date
    Jul 2002
    Posts
    3
    you just haave to check for what browser they are using and send them to a page that works with what they have. if they have NS4 then make a seperate page that doesn't use CSS. and tell them to upgrade, HAHAHA. if they have a better browser then CSS is great because of its ease of change and its power.

  6. #6
    Join Date
    Jun 2002
    Posts
    8
    Here's my disclaimer. I don't code for a business. I only do it as a hobbie, and to learn how to do it. I currently use IE 5.5, NN 6.2 and Mozilla for testing. You say, "but ah, you don't test with a version 4 browser. You bet I don't and here's why.

    Netscape 4.0

    That's an article by a site who carries articles about web programming. People wrote in and asked why the site doesn't code for older browsers and this is their reply. Basically, don't code for buggy browsers. Somewhat. CSS itself, is fine. The old browsers didn't handle CSS as well because IE and NN weren't following the standards set up by w3c. Unlike programming languages that start out with a standard, HTML/CSS was far from well formed. Thankfully, all of the browser makers I know of are trying to become more inline with the w3c standards. There even is starting to be a transition to XHTML and eventually it will be XML, which as stated before HAS to have a style sheet in order to display properly.

    Put it another way, what happens if you have a bug in a computer game, and you ask tech support about it? They tell you to download the latest patch, aka the latest version.

    As for what my site uses, I'm currently doing a make over with my site, so it's tough to just say here's what I use because it's changing. When I'm done, I'll tell people on my intro page that the site vaidates against w3c standards, and which browsers it works best in.

    body {
    background-color:#661111;
    color:white;
    font-size:100%
    }

    That's what I have set up in my external CSS currently for the body tag. It works correctly in all of the browsers I test against.

  7. #7
    Join Date
    Jul 2002
    Posts
    8

    Changed my mind

    I think CSS is really cool. Will be even cooler when the browsers fully support it.

  8. #8
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201
    As a professional Web Application developer, I can say that CSS comes in very handy. You just need to know the limitations with regard to the browsers that you support.

    It's best to consult some of the many CSS compatibility charts out there.

    example:
    http://www.immix.net/html/CSSGuide.htm

    I can definitely say that Netscape 4.x is the quirkiest browser that "supports" CSS.

  9. #9
    Join Date
    Jul 2002
    Location
    Don't Know, Don't Care
    Posts
    346
    unfortunatly you're not the only one...but you should be
    css is great, if you think it sucks then you obviously haven't done any advanced javascript (ex: dhtml). Sure, setting the background color is arbitrary, but you can't have any real power over style without css.

    C G C F A D--Feel the Noise

    "When your life goes nowhere and leads back to me, doesn't that tell you something?"
    ~Gray Area Fury

  10. #10
    Join Date
    Jul 2006
    Posts
    1

    Re: Am I the only one that thinks CSS sucks?

    Quote Originally Posted by Waldo2k2
    unfortunatly you're not the only one...but you should be
    css is great, if you think it sucks then you obviously haven't done any advanced javascript (ex: dhtml). Sure, setting the background color is arbitrary, but you can't have any real power over style without css.
    That's true, but don't forget that CSS can be a pain in the backside. It's great for fonts, textfields, internal classes and use in combination with PHP (arrays and stuff) But if you try to make a page 100% height from "header" till "footer" you'll have a puzzle.

    CSS isn't read by all browsers in the same way. For IE and FF i make different ones that i call with php on browserdetect. But, even then it can consume time. Why? try to make a <div> and place another one inside it, then make both 100% stretch in height, both with own content. Unless you make there position:absolute; they will allways create a scroll bar... Then you must calculate some padding to keep the distances the same....

    To wrap a long story short, it's for most users/projects only good for the nice font stuff, pic placement, padding/margin, properties of <div's> which are placed as position:relative; in a table... Besides that, just use a table for lay-out (or frameset) and place your div's inside... Then link the spec's of the html/body/table/tr/td/div to your css...

    I know, there is a way arround, but it can't be used in every project. I use CSS a lot, on every project. But most of the time i'm wishing that we can dump this outdated CSS code and get an update. Mainly for the width/height problems with CSS (i really hate tables/framesets but still need them), rest rocks...

  11. #11
    Join Date
    May 2002
    Posts
    10,943

    Re: Am I the only one that thinks CSS sucks?

    schaap_blaat, I realize that this is your first, and so far only, post. You will notice that this one is 4 years old.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  12. #12
    Join Date
    May 2004
    Location
    MN / NJ, United States
    Posts
    768

    Re: Am I the only one that thinks CSS sucks?

    Quote Originally Posted by peejavery
    schaap_blaat, I realize that this is your first, and so far only, post. You will notice that this one is 4 years old.
    I know, and this got reported by multiple people. The problem with the board software is if you delete a post, it still is bumped up to the top even though the most recent post in from 2002. Or at least that is how I think it works.
    *9-11-01* Never Forget; Never Forgive; Never Relent!
    "If we ever forget that we're one nation under God, then we will be a nation gone under." - Ronald Reagan

  13. #13
    Join Date
    May 2002
    Posts
    10,943

    Re: Am I the only one that thinks CSS sucks?

    Quote Originally Posted by Dr. Script
    I know, and this got reported by multiple people. The problem with the board software is if you delete a post, it still is bumped up to the top even though the most recent post in from 2002. Or at least that is how I think it works.
    Thanks for the info.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  14. #14
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Am I the only one that thinks CSS sucks?

    Quote Originally Posted by Dr. Script
    I know, and this got reported by multiple people. The problem with the board software is if you delete a post, it still is bumped up to the top even though the most recent post in from 2002. Or at least that is how I think it works.
    Not in another vBuillitin board I help moderate, but could be differnet version ......

  15. #15
    Join Date
    May 2004
    Location
    MN / NJ, United States
    Posts
    768

    Re: Am I the only one that thinks CSS sucks?

    That's possible on another verson, but at least the last time I checked, this forum isn't like that. I oculd be wrong, but with all thes eposts now, whatever.
    *9-11-01* Never Forget; Never Forgive; Never Relent!
    "If we ever forget that we're one nation under God, then we will be a nation gone under." - Ronald Reagan

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured