Search code examples
asp.netcssmaster-pages

best web design approach


I'm more of a asp.net web app dev, I came across my first side project and I stumbled on what is the best way to style a web page.

Here's my problem: I need to style a master page so any content that comes in the content place holder would fit.

I tried:

  1. divs that have position of where to go, but it didn't work for dynamic content (like a repeater) as it overflows beyond the div because I specified position styles for the container div.
  2. tables that have rows and cells that moves the content to the desired position but when there is a repeater in the big cell (which is the main page content) it splits the page and messes it up.

Any thoughts of how to best start to style the master page so it will hold dynamic content in it.


Solution

  • divs are for positioning, tables for tabular data. If your divs are not positioned properly when the page is rendered ; something on your css is not playing nice. The fact that you have a Master Page or not will not affect the way your HTML elements are rendered.