Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

CSS summary with html 2023

Rating
-
Sold
-
Pages
41
Uploaded on
23-09-2023
Written in
2023/2024

This summary includes all codes on a full CSS course transcribed, it includes CSS codes and the right syntax as well as needed html to use CSS styling on . You should copy and paste the codes on a code editor such as visual studio code to further enhance your understanding of the language . This language is the main language used to style and change the appearance of websites all around the internet.

Show more Read less
Institution
Course

Content preview

MARGIN

div {
background-color: #DDD;
padding: 10px;
width: 70%;
margin: auto;
}

BORDER
div {
background-color: #DDD;
padding: 10px;
width: 70%;
margin: auto;
border-width: 10px;
border-color: red;
border-style: solid;
border: 10px solid red;
}

-----------------------------------------------------------------------------------
-----
OUTLINE

div {
background-color: #DDD;
width: 300px;
padding: 10px;
outline: 10px solid red;
border: 10px solid blue;
}

DISPLAY
-----------------------------------------------------------------------------------
-----
/*

Block

- Take Full Width If No Width
- Add Line Break
- Respect Padding, Margin, Width, Height

Inline

- Do Not Repsepct Width, Height
- Respect Padding And Margin [ Just Wight + Left ]
- Do Not Add Line Break
- Allow Elements Before And After It in The Same Line

Inline-Block

- Allow Elements Before And After It in The Same Line
- Respect Padding, Margin, Width, Height

*/

span {

, background-color: #EEE;
display: inline-block;
}
-----------------------------------------------------------------------------------
-----
visibility

div {
background-color: red;
margin: 10px 0;
}
.first {
visibility: hidden; -> hides but keeps place of things that are hidden


.one {
border-bottom: 2px solid red;
color: red;
}
.two {
border-bottom: 2px solid green;
color: green;
}
.three {
border-bottom: 2px solid blue;
color: blue;
}
.four {
border-bottom: 2px solid black;
color: black;

-----------------------------------------------------------------------------------
------
GROUPING COMMON DECLARATIONS
}
.one,
.two,
.three,
.four,
.my-p {
padding: 15px;

-----------------------------------------------------------------------------------
------
NESTING

div .special {
color: red;
}
margin: 12px 0;
background-color: #ededed;
}
display -> none hides things
}

-----------------------------------------------------------------------------------
------

DIMENSIONS

,div {
background-color: red;
padding: 10px;
display: inline-block;
max-width: 400px; OR min-width
(stops or continues from a certain number using min and max)
}

width: fit content; (fits content inside it)



///overflow

overflow of text outside of element

types- overflow: hidden-auto-visible;
overflow-x overflow-y

-------------------------------
-------------------------------
-------------------------------
-------------------------------
------------------------------------

TEXT CHANGING IN CSS
-----------------------------------------------------------------------------------
------------------------------

text-align: center right left

text direction in page : ltr or rtl

if image next to text -> : vertical-align
(alignment of both next to each other) : middle-top-bottom

text-decoration: underline -linethrough -overline- none

transformation: for changing text lower or uppercase ->
text-transform: lowercase or uppercase


letter-spacing: 1px ...

word-spacing : 1px ...

text-indent ->space before text like in essays

line-height: height between sentences (good for eyes of viewers) -already there
automatically

-----------------------------------

---> want to change a sentence or a word alone?
put it in span element and change it alone

--------------------------------------

, word-break :break -word or break-all

white-space
--------------------------------------------text-overflow


div {
background-color: #ddd;
padding: 10px;
width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
div:hover {
overflow: visible;
}


--------------------------------------------

inherit -> makes elements take some properties of father elements to save time
takes the change men maib element its inside of div -> div p



font-family -> check if font-family is web friendly and acccepted

.with-ser {
font-family: 'Times New Roman', Times, serif;
}
.san-ser {
font-family: Arial, Helvetica, sans-serif;
}
.with-ser,
.san-ser {
background-color: #EEE;
padding: 10px;
}

serif-> with edges
sans-serif -> without edges


-----------------------------------------
font-size:
font-style : italic -oblique
font-weight : bold




-----------------------------------------
button {
background: transparent;
border: none;
color: red;
font-weight: bold;

Written for

Course

Document information

Uploaded on
September 23, 2023
Number of pages
41
Written in
2023/2024
Type
SUMMARY

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
ahmedhossamabdelkhalek

Get to know the seller

Seller avatar
ahmedhossamabdelkhalek British university in Egypt
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions