newbie: problem with master pages!

J

Jeff

Hey

I'm creating a simple helloworld project in visual web developer 2005
express

In my my project I've created a simple master page, that contains 1 table (3
rows x 3 columns) and 1 contentplaceholder. The contentplaceholder is placed
at row 2, column 2 (that means it's in the centre cell in the table)...

After creating the master mage, I then created a new web page that uses this
master page. In this web page I added a calendar. But my PROBLEM occur when
I run this website, the calendar is then placed a bit offset to the
left..See this link, and you see what I mean:
http://home.online.no/~au-holme/pub/66404/ (I'm using those different colors
to see where all the table cells goes) As mentioned above the
contentplaceholder is in the second row, seconds column.. but here the
contentplaceholder uses parts of column 1...

I want contentplaceholder to be in column 2, row 2, not like this (column 2
+ COLUMN 1, row 2)

What am I doing wrong here?

Maybe it's a bad idea to position contentplaceholder using tables?

Maybe Panel should be used instead for position contentplaceholder?

Best Regards

Jeff
 
C

clintonG

Learn CSS Jeff. It solves all these problems but note if you are using
Themes or StyleSheetThemes with your MasterPage.

For now try to wrap your calendar in a div and play with the margin
values...

<div style="margin: .25em .25em .25em .25em">
<asp:Calendar ... />
</div>

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top