# VirtualMV/CSS/Formatting

< VirtualMV‎ | CSS

Formatting enables the elements on a web page to be modified and includes the ability to change:

• Fonts/Font family
• Weight (Bold, underline, italics, underline (it is not recommended that you underline any text on a web page as it usually indicates a hyperlink)
• style= "font-weight:bold"
• Alignment (left, center, right)
• style="text-align: center"
• Colour (color?)
• style="color:#0000FF"

Reference: (w3c schools, 2009)[1]

A really important technique when using styles for layout is to cancel out the "floating" div tags so that the following div tags are not affected by the current ones. For example if you have a 3 colum div tag layout then want to have a footer you need to clear the floating div tags so that the footer will always be on the left. This is achieved using the clear:both style

<p style="clear:both">&nbsp;</p>

### References

1. w3schools (2009) CSS text-align Property Retrieved February 26, 2009 from http://www.w3schools.com/CSS/css_text.asp
 VirtualMV/CSS/Formatting. (2021). In WikiEducator/VirtualMV wiki. Retrieved January 17, 2021, from http:https://wikieducator.org/VirtualMV/CSS/Formatting    (zotero)