www.webdeveloper.com
Results 1 to 10 of 10

Thread: Bringing Modularity using CSS

  1. #1
    Join Date
    Nov 2005
    Posts
    22

    Lightbulb Bringing Modularity using CSS

    Hi all!
    I hv designed some my pages using pure CSS approach and after lot of hit n trials I hv been able to achieve the desired outlook. This time my question is not related to ne specific problem. I wanted 2 know hw v could bring in modular approach by use of pure CSS. I hv another question. Is pure CSS a better appoach or v should hv a good hybrid b/w HTML table structure and CSS. your advice will govern how I will design my sites from now on.
    Thnx in advance.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,220
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Nov 2005
    Posts
    22
    Hi thnx NogDog! It was a gr8 site and thoroughly njoyed it! u hv answered my question nicely through it.

  4. #4
    Join Date
    Nov 2005
    Posts
    22

    Modularity issue

    My question about using pure CSS or hybrid approach has got a reply. I can also have ne other suggestion which somebody might want 2 drop in.
    But my 2nd Q is still not answered. How can use CSS to bring in modularity?
    What I think of modularity is making some reusable component and then using them in similar pages again n again. Is there nethin else related to modularity which v can implement using CSS technique? becoz I feel modularity is v important. Thnx again in advance.

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,220
    If I'm understanding correctly, modularity is probably better addressed by the use of some sort of server-side processing; whether it be server-side includes (SSI) or the use of scripting/CGI programming (PHP, ASP, Perl, etc.) to include reusable portions of your web content.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  6. #6
    Join Date
    Nov 2005
    Posts
    22
    I m not v sure bout it! maybe its wat u referring to. But the main idea I had was to built such things which could be used later and dividing a web page into portions and then develop so that v could reuse what v have developed

  7. #7
    Join Date
    Nov 2005
    Posts
    22
    Can nebody give me suggestions to how I can implement modularity using CSS? Time is running out n I hv 2 quickly giv some result!! Thnx 4 ne help!!

  8. #8
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,220
    The only aspect of CSS which is "modular" is the fact that you can use external style sheets, so you can have many pages all reference the same stylesheet. However, as far as page content, CSS has nothing to do with that. Its purpose is to affect the visual presentation of the page, not the content. As I stated in my earlier post, to implement modular, reusable content you will need to use some sort of server-side processing.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  9. #9
    Join Date
    Dec 2002
    Location
    Seattle, WA
    Posts
    1,843
    what i have being doing lately is something along the line, i think you are trying to do

    first code a layout (the html) as generic as possible, then make a default stylesheet (generic) that will define the main layout's look (give it shape), then do another stylesheet (detail) that will define in detail of how the layout is to look: colors, links, fonts, etc.

    then later on, if you want to switch the look of the site all you have to do is make another "detail" stylesheet

    this is the main point of CSS, and states the purpose and intent of what CSS is

  10. #10
    Join Date
    Nov 2005
    Posts
    22
    Thnx NogDog n ShrineDesigns 4 yr rep. I think consolidating both of yr replies I may be able 2 solve my prob.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles