Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
dreamweaver - margins

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver - Margins

dreamweaver - Margins

ResolvedVersion Standard

Peter has attended:
Dreamweaver 8 Introduction course
Dreamweaver 8 Intermediate course

Margins

How do i access the Top Margin-Left Margin-Right Margin options of a table?

Cellpadding cellspacing or css

Hi Peter,

I'm not quite sure exactly what you're referring to, but I'll try to cover the basics of margins etc.

Traditionally, you would use the CELLPADDING and CELLSPACING parameters of the TABLE tag to control the look of a table. Padding controls the pixel space between the cell elements and cell border. Spacing controls the pixel space between the cells themselves. To try this, select a table and try values in the Properties panel.

To control the margin or padding of a specific cell, you can use inline CSS. For example, the code may look like this:

<td style="margin-right: 50px;">Cell content</td>


You can also apply CSS parameters to a table, which may be the best solution for you. You can either redefine the TABLE tag, or better still, create your own CSS class and apply the class to the specific table.

Eg. the CSS code may look like this:
.mytable {
margin-top: 5px;
margin-left: 50px;
margin-right: 30px;
}

And then applied to the table like this:
<TABLE class="mytable">

Please let me know if this answers your query. If yes, please mark the question as resolved. If not, please reply with more detail of what you are trying to acheive.

Kind regards,
Rich

Dreamweaver tip:

Xhtml vs html

When using dreamwear template or just creating a blank webpage, you are able to select the markup language you want to use. The main choices are either xhtml or html. It is now best to select xhtml as this will translate all the html into xml, so it is transmitted across the web in xml format. One of the main advantages of this is that it makes the site that you build much more compatible with the range of different web browsers that exist.

View all Dreamweaver hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.