Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 5th, 2004, 05:39 PM
Authorized User
Join Date: Dec 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Position of a table

I am using a table in a template that, in design view, is located ok, but in F12 view (real view) gets wider and offset away to the right, thus overlapping other images.

I am probably forgetting to include / exclude some properties of the table in the CSS, but there are so many combinations to try (table, tr,td, and all the margins) that I suppose an experienced person will point straight to the stuff I am misusing.

Might someone help, please?

Old January 5th, 2004, 05:46 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

If you want to set a specific width for the table, try this CSS:

<table style="width: 300px;">


This will make the entire table 300px wide. You can then style individual table cells as well, like this:

<table style="width: 300px;">
  <td style="width: 100px;">Cell 1</td>
  <td style="width: 200px;">Cell 2</td>

The second cell is now twice as big as the first one.



Imar Spaanjaars
Everyone is unique, except for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
get grandchildrens position() bonekrusher XSLT 2 March 19th, 2008 09:48 AM
Cursor.Position iremtoksoz C# 3 January 2nd, 2008 11:41 AM
Position barski XSLT 5 July 11th, 2007 01:54 PM
bindingSource position after table.AddRow() miroslavign .NET Framework 2.0 1 September 12th, 2006 02:15 PM
Column position in table kasanar SQL Server 2000 7 June 2nd, 2005 02:00 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.