CSS/Basic Code

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
 
  property: primary value, backup value;
 
  property: primary value, backup value;
 
  }</nowiki>
 
  }</nowiki>
 +
Example:
 +
<nowiki> sets all paragraphs to the color of red
 +
p{
 +
color: red;
 +
}
 +
</nowiki>
 
Comment
 
Comment
 
  <nowiki>/*I'm a comment!*/</nowiki>
 
  <nowiki>/*I'm a comment!*/</nowiki>

Revision as of 11:58, 9 November 2013

Link - defines the css page to include for formatting the page

<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
 type=text/css  -- defines the type of file
 rel=stylesheet -- same as above
 href= -- points to the location

General Format for most CSS

 selector {
 property: primary value, backup value;
 property: primary value, backup value;
 }

Example:

 sets all paragraphs to the color of red
 p{
 color: red;
 }
 

Comment

/*I'm a comment!*/

Built in default fonts for CSS

serif
sans-serif
cursive
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox