|
| www.kdwebpagedesign.com |
|
BASIC HTML ::
Welcome
Introduction to HTML What is an URL? Browser Safe Fonts Photo Size and Compression Formatting Your Text Paragraphs, Linebreaks, Rules The Marquee Tag Adding Images Adding Text and Image Links Making Lists Tables: Basics Tables: Backgrounds and Color Tables: Colspan and Rowspan Tables: Practical Samples BASIC CSS ::
Introduction to CSS
Adding Backgrounds and Color The <div> and <span> Tags Formatting Your Text/CSS Making Lists/CSS Image Borders/CSS Hyperlinks/CSS Tables/CSS Fun with CSS USER Tools ::
Custom Auction Listing Creator: 1
Custom Auction Listing Creator: 2 Choosing Your Colors Mix-and-Match Backgrounds JavaScript Tricks ::
Other Information ::
eBay Related Questions
Customizing Your eBay Store Hosting Your Own Photos on eBay Using Irfanview to Crop Photos What Does That Term Mean? Donations ::
Do you find our Tutorials helpful? Are the free Auction Templates helping your sales? Donations of any amount are appreciated to help keep this site up and running!
|
![]() |
The <div> and <span> TagsThe <div> tag defines divisions in your Web page such as the footer, navigation or other sections that are unique parts of each page. The primary attributes of the <div> tag are: style, class and ID. When creating a stylesheet, you use the pound sign "#" to indicate ID and a period "." to indicate class. Or if you are using inline CSS you would add the "style" attribute. If you are using both and ID and a class with a <div>, always define the ID first, then the class. You can apply a class to a specific HTML tag such as <p>, or just as a general class. In the sample below we have defined a "container" division, a class that makes text a light gray, and a class to be applied to a <p> tag to format a quote. <style type="text/css"> IDS vs. CLASSESThe most important thing to remember is that IDs identify a specific element and therefore must be unique on the page - you can only use a specific ID once per Web page. Many browsers do not enforce this rule but it is a basic rule of HTML/XHTML and should be observed. Classes mark elements as members of a group and can be used multiple times, so if you want to define a style which will be applied to multiple elements you should use a class instead. Classes are useful to apply similar style to a variety of elements. For example, you may wish for all your links to be green and turn orange when a viewer hovers over the link. Using the class attribute in this case makes sense. IDs are useful to uniquely identify a particular element. For example, you may wish to have all menu links be orange, while content links are green. Placing the menu inside an element which is ID'd as "menu" allows you to make contextual styling based on the section of the page. The <span> TagTo <span>xx</span> tag works like the <b> or <i> tags. It tells the browser only the word/words enclosed between the open and close tags will follow the styles defined in the style sheet. <span class="lighttext;">word/words</span> What Can Be Done - Tableless!The standard Lorem Ipsum passage, used since 1500's Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco. “Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor.” Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Excepteur sint occaecat cupidatat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <style type="text/css"> |