SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Css Faq

  1. #1
    Starting to-digg-in ********* jamesxv7's Avatar
    Join Date
    Oct 2003
    Location
    Island of Puerto Rico @ the Caribbean
    Posts
    873
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Css Faq

    Hi people:

    I'm just thinking about build a thread with the answer of the most basic and experts questions about CSS. Please try to be specific and dont repeat the questions. Also please follow the following format:

    Q: How I can change the style of a DIV?
    A: You can use the following declaration:
    Code:
    <div style="background-color:#333; border:1px solid #000;>Any content...</div>

    You can change the word solid by dotted, dashed, double, groove, ridge, inset and outset to achive differents styles.

    Enjoy it.
    James: Ecodig - My Blog - My Gallery
    Validate your sites: CSS - HTML/XHTML
    Without faith you are lost.

  2. #2
    Starting to-digg-in ********* jamesxv7's Avatar
    Join Date
    Oct 2003
    Location
    Island of Puerto Rico @ the Caribbean
    Posts
    873
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Q: How I can center a DIV?
    You can use auto-width margins.
    Code:
    body {
    	margin:50px 0px; padding:0px;
    	text-align:center;
    	}
    	
    #Content {
    	width:500px;
    	margin:0px auto;
    	text-align:left;
    	padding:15px;
    	border:1px dashed #333;
    	background-color:#eee;
    	}
    James: Ecodig - My Blog - My Gallery
    Validate your sites: CSS - HTML/XHTML
    Without faith you are lost.


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
  •