Help:Wiki University Wikitext--Width and Height

Width
Using either paragraph or div tags you are able to control the width on the page. If you wanted the text to only go part way across the page you could do it two different ways. Here is the attribute coding:
 * Set the width to a certain number of pixels.
 * Set the width as a percentage.
 * width:400px  for pixels
 * width:50%  in percentages

Here is our lorem ipsum paragraph with these two attributes with a border to see more easily: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. Curabitur eleifend quis ligula ac ullamcorper. Curabitur eget suscipit turpis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. Curabitur eleifend quis ligula ac ullamcorper. Curabitur eget suscipit turpis.

Height
The height is also set by default as is the width. But you can set the height at beyond what is required. If you want the paragraph or div tag to be more than what the brower set the height you use the follow attribute coding: height:200px Here is our lorem ipsum with a height of 300 pixels:
 * Notice you cannot use percentages

 Exercises Check your answers >
 * 1) Using a div tag put a border around our lorem ipsum paragraph of a "groove" type that is 10 pixels thick.
 * 2) Using a div tag put a border around our lorem ipsum paragraph of a "ridge" type that is 15 pixels thick.

 Quick Quiz
 * You can only put borders on all sides.
 * A. True
 * B. False


 * There is a default space between text and borders
 * A. True
 * B. False


 * Solid lines are all that is allowed in borders
 * A. True
 * B. False

Check your answers >