A Simple 2-Column Layout in Razor
Posted by: K. Scott Allen,
on 22 Aug 2011 |
View original | Bookmarked: 0 time(s)
2 column layouts are rather popular on the web, and there are 1,001 ways to make them work. The approach you choose really depends on the type of content you have, and how you want images and backgrounds to work. What I'll show is the Razor _Layout and CSS to achieve the following look: The Razor _Layout file can rely on partial views to handle each of the primary sections: top, navigation, sidebar, and footer. RenderBody will produce the primary content area. <!DOCTYPE html>
<html>
<head>...