Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions USING CSS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Using CSS

## Type Selector
div {
background-color: #000000;
}

## Class Selector
.active{
color: #fffff;
}

### Class Selector (compound Selector)
.box.orange{

}
In HTML <div class= "box orange"> <div>

## ID Selector
#list-1 {
border: 1px solid grey;
}

## Universal Selector
* {
padding: 10px;
}

## Attribute Selector
a[title] {
font-title: 2em;
}

## One rule, many selectors
h1,h2 {

}

h1#heading
h2.subheading


# Combinators with CSS
## Descendant Selectors
p abbr {

}
## Direct selectors
.menu > .is-active {

}
##
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Debugging HTML Practice
<title>Debugging HTML Practice </title>
</head>
<body>
<div class='profile'>
<h6>Profile Name</h6>
<h1>Profile Name</h1>
<div class='address'>Address</div>

<div class='contact'>
Expand All @@ -17,12 +17,12 @@ <h6>Profile Name</h6>

<div class='categories'>
<h2>Categories</h2>
<li>
<ul>Lorem ipsum</ul>
<ul>dolor sit</ul>
<ul>amet</ul>
<ul>dolor sit</ul>
</li>
<ul>
<li>Lorem ipsum</li>
<li>dolor sit</li>
<li>amet</li>
<li>dolor sit</li>
</ul>
</div>

</div>
Expand Down Expand Up @@ -52,7 +52,7 @@ <h2>Categories</h2>

<div class='footer-3-wide'>
<ul>
<ol>
<li>
<a href='https://www.example.com/' target='_blank'>
Lorem ipsum dolor sit amet
</a>
Expand Down