Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2006

Tip: Looking for answers? Try searching our database.

newbie: problem with master pages!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 27 Jun 2006 18:43 GMT
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
clintonG - 27 Jun 2006 21:48 GMT
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/

> Hey
>
[quoted text clipped - 27 lines]
>
> Jeff

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.