VirtualMV/CSS/Formatting

From WikiEducator
< VirtualMV‎ | CSS
Jump to: navigation, search



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

  • Fonts/Font family
    • style="font-family: menu,Arial"
  • 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>

VmvIcon References.png References

  1. w3schools (2009) CSS text-align Property Retrieved February 26, 2009 from http://www.w3schools.com/CSS/css_text.asp

virtualMV  |  Superquick wiki guide  |  Please give me some feedback

VirtualMV/CSS/Formatting. (2024). In WikiEducator/VirtualMV wiki. Retrieved November 21, 2024, from http:https://wikieducator.org/VirtualMV/CSS/Formatting    (zotero)