Results 1 to 6 of 6

Thread: How to create Good style sheet

  1. #1
    Join Date
    Dec 2009
    Posts
    33

    How to create Good style sheet

    Hi,

    I am student and built on a project in java. I want to use dynamic styling sheet on my project. My project is on web server and directly access through a internet explorer. I am using Cascading style sheet on that, but i have no idea how to do better in CSS on my project. Please help or suggest.Thanks.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    How to create Good style sheet

    I am using Eric Meyer Reset and the YUI Reset in my project for style sheet and its looking better. It is removing the margin and padding from all elements. Eric Meyer recommends that you should not just take his reset stylesheet and drop it in your projects if there is a more effective way of using it. I will be added some tag like html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote for my CSS to look better.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    How to create Good style sheet

    I would add to find the margin-right property on Page . I will give you one example -
    Code:
    div#header h1 
    {
     z-index: 101;
     color: #000;
     position: relative;
     line-height: 24px;
     margin-right: 48px;
     border-bottom: 1px solid #dedede;
     font-size: 18px;
     }

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    How to create Good style sheet

    I am using comments and grouping some elements to becomes much quicker to find what we are looking for.I will give you a suggestion point to point how I structure my style sheets :
    # Define the basic template: header, footer, etc. Elements that help to define the basic layout of the site
    #Define all elements in the footer
    #Define styles for simple things like floating to the sides, removing a bottom margin on elements.
    #Define styles for basic elements: body, h1-h6, ul, ol, a, p.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    How to create Good style sheet

    I am wrapping one to another line in my page for c.onsistency. I am using following code for this.
    Code:
    div#header 
    { float: left; width: 100%; }
    div#header div.column 
    {
    border-right: 1px solid #ccc;
    float: rightright;
    margin-right: 50px;
    padding: 10px;
    width: 300px;
    }
    div#header h1
     { 
    float: left; position: relative; width: 250px; 
    }

  6. #6
    Join Date
    May 2008
    Posts
    2,389

    How to create Good style sheet

    Before working on my CSS script I have to go through and mark-up the entire document from the opening body tag to the closing body tag. I will add some generic divs like header, content, footer because I know these things are going to exist. I am recommend you just utilize CSS’s descendant selectors to target children elements.

Similar Threads

  1. Using vba code create new workbook and sheet
    By Yogisa in forum Operating Systems
    Replies: 5
    Last Post: 09-07-2011, 09:00 PM
  2. Cannot view XML input using style sheet
    By Frieda in forum Software Development
    Replies: 2
    Last Post: 03-12-2010, 04:55 AM
  3. How to create a contact sheet
    By Bao in forum Tips & Tweaks
    Replies: 2
    Last Post: 10-07-2010, 12:39 AM
  4. How to change style sheet for iframe?
    By Jaishree in forum Software Development
    Replies: 2
    Last Post: 20-06-2009, 12:49 PM
  5. Display HTML in XSL Style Sheet
    By Neil'o in forum Software Development
    Replies: 2
    Last Post: 27-03-2009, 09:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,659,920.14545 seconds with 17 queries