dreamweaver - margins

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

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

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

dreamweaver - Margins

resolvedResolved · Low Priority · Version 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


Server loaded in 0.08 secs.