Tutorial for CSS Layout Customization

104 19
    • 1). Open a new document in Notepad.

    • 2). Designate the HTML element that will be modified by your style sheet, followed by an open bracket. For example, if you will modify a paragraph (<p>) element in your CSS, enter "p {" into your style sheet.

    • 3). Enter the change you wish to enact in the next line, followed by a semicolon. For example, if you wish to change all of the paragraph element contents to boldface, your CSS will look like this:

      p {

      font: bold;

      }

    • 4). Use a class or ID to specify changes that may be called within your HTML independent of HTML element type. A class can be used multiple times and is designated by a ".", while an ID can be used once and is designated by a "#". For example:

      .thrab {

      font: bold;

      }

      This creates a class called "thrab," which can be called from within your HTML document.

    • 5). Save your style sheet with the ".css" file extension.

    • 6). Open your HTML file in Notepad.

    • 7). Link to your style sheet within the <head> section of your HTML document. For example, if your style sheet is named styletimeds.css, your link tag should look like

      <link rel="stylesheet" type="text/css" href="/links/?u=styletimeds.css" />.

    • 8). Specify any applicable classes or IDs in their appropriate HTML elements. For example, if you wish to format a particular <div> with the properties of the thrab class, the <div> tag should be revised as <div>. This will apply the corresponding changes to the contents of that particular <div>.

    • 9). Save your HTML document.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.