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:
- 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.
- 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.
divsare for positioning,tablesfor tabular data. If yourdivsare not positioned properly when the page is rendered ; something on yourcssis not playing nice. The fact that you have a Master Page or not will not affect the way your HTML elements are rendered.