Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to create Good style sheet

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-12-2009
Member
 
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.

Reply With Quote
  #2  
Old 25-12-2009
Member
 
Join Date: Jan 2008
Posts: 1,514
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.
Reply With Quote
  #3  
Old 25-12-2009
Member
 
Join Date: May 2008
Posts: 2,006
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;
 }
Reply With Quote
  #4  
Old 25-12-2009
Member
 
Join Date: Apr 2008
Posts: 1,999
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.
Reply With Quote
  #5  
Old 25-12-2009
Member
 
Join Date: May 2008
Posts: 2,290
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; 
}
Reply With Quote
  #6  
Old 25-12-2009
Member
 
Join Date: May 2008
Posts: 2,380
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.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 05:17 AM.