Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Ever made a CSS mess?

Ever made a CSS mess?

Scheduled Pinned Locked Moved The Lounge
htmlcsswpfbusinessquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larsenal
    wrote on last edited by
    #1

    So I've been working on a intranet-like project for some time. Just a few days ago, the client has me change the layout of a lot of several pages. This happens a few times. Of course I've tried to be reasonable in my use of CSS. However, if I had some screen element using a few of my custom styles, when I go to make the change I rework my HTML as needed and create some new styles. Because I am afraid that I may have used the old style on some other page, I keep it in my CSS file. After a few weeks of this, my CSS is a complete mess. I'm interested in hearing how others deal with ever-changing visual preferences, I mean... requirements. I know that I have these wonderful ideas in my head about how it should work but when I get rolling through a project, these plans often fall apart. I think we all know that we should be more disciplined about this, but I'd like to hear what really happens in most cases. "To die is gain."

    S J 2 Replies Last reply
    0
    • L Larsenal

      So I've been working on a intranet-like project for some time. Just a few days ago, the client has me change the layout of a lot of several pages. This happens a few times. Of course I've tried to be reasonable in my use of CSS. However, if I had some screen element using a few of my custom styles, when I go to make the change I rework my HTML as needed and create some new styles. Because I am afraid that I may have used the old style on some other page, I keep it in my CSS file. After a few weeks of this, my CSS is a complete mess. I'm interested in hearing how others deal with ever-changing visual preferences, I mean... requirements. I know that I have these wonderful ideas in my head about how it should work but when I get rolling through a project, these plans often fall apart. I think we all know that we should be more disciplined about this, but I'd like to hear what really happens in most cases. "To die is gain."

      S Offline
      S Offline
      suzyb
      wrote on last edited by
      #2

      When I replace a css element in a page, I usually do a Find over all the files in the site to see where else its used. If nowhere, I delete it. If its used in a few other pages I check whether it can be replaced and if so, do so otherwise I just leave it in. SuzyB If I had a better memory I would remember more.

      1 Reply Last reply
      0
      • L Larsenal

        So I've been working on a intranet-like project for some time. Just a few days ago, the client has me change the layout of a lot of several pages. This happens a few times. Of course I've tried to be reasonable in my use of CSS. However, if I had some screen element using a few of my custom styles, when I go to make the change I rework my HTML as needed and create some new styles. Because I am afraid that I may have used the old style on some other page, I keep it in my CSS file. After a few weeks of this, my CSS is a complete mess. I'm interested in hearing how others deal with ever-changing visual preferences, I mean... requirements. I know that I have these wonderful ideas in my head about how it should work but when I get rolling through a project, these plans often fall apart. I think we all know that we should be more disciplined about this, but I'd like to hear what really happens in most cases. "To die is gain."

        J Offline
        J Offline
        jan larsen
        wrote on last edited by
        #3

        Personally, I'm very strict about my CSS classes, and I never use inline styling unless forced to. I've started up a large web application, and now I'm off for two months to take care of my kids. I worry a lot about what happens to the new pages, as the ones that are taking over aren't disciplined. The worst part is that we know for sure, that the layout will change sometime after the launch of the first version, and I'm quite certain, that my colleques, and my boss :-), has made a lot of inline styling, and even styling by attributes :-( "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups