Web Fundamentals
List of CSS Attributes
Try
HackMD
Web Fundamentals
·
Follow
Last edited by
Melissa Longenberger
on
Sep 24, 2022
Linked with GitHub
Contributed by
Edit
0
Comments
Feedback
Log in to edit or delete your comments and be notified of replies.
Sign up
Already have an account? Log in
There is no comment
Select some text and then click Comment, or simply add a comment to this page from below to start a discussion.
Discard
Send
tags:
CSS
List of CSS Attributes
background-color
changes the background color
color
changes the font color
text-align
allows you to align the font left, center, right
text-decoration
allows you to change the style
set it to none to remove the underline in links
border
create a border
give it a width style and color
margin
create a margin
this is outside the border
auto most of the time centers things
padding
add padding to an element
this is inside the border around the content
font-size
change the size of the font
font-weight
change the boldness of the font
width
set the width of the element
when dealing with images only use width
using % will allow the element to change with the device screen size
height
set the height of the element
use with discression, in most cases you want the content to determine the height
List of CSS Attributes
Expand all
Back to top
Go to bottom
List of CSS Attributes
Expand all
Back to top
Go to bottom
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up
Comment