Monday, November 7, 2011

Commenting Out in CSS

blockquote {
display:block !important;
padding:10px 20px;
text-align:justify;
font-family:Georgia, Times, "Times New Roman", serif;
}
blockquote p {
font-style:italic;
color:#0;
display:inline;
}

blockquote p:before,
blockquote p:after {
color:#0;
line-height:0;
font-size:5em;
}

blockquote p:before {
content: open-quote;
padding-right:10px;
vertical-align:-27px;
}

blockquote p:after {
content: close-quote;
font-size:5em;
line-height:.3;
vertical-align:-37px;
}
~Geek Humor



Put /* */ around the entire section that needs to be commented out.

Example: /*this gets commented out*/

I have never had cause to comment anything out on a style sheet, so when someone asked me how today, I looked it up and now I know!

Note: There is a lot more about Cascading Style sheets (CSS) I need to learn.

Something else I learned: You can get free CSS templates.

1 comment: