Skip to main content
Dr_Atomic
Inspiring
April 24, 2019
Answered

HT indent text without going border to border?

  • April 24, 2019
  • 1 reply
  • 615 views

This seems like such an elementary question, but on my blank pages the text goes from border to border. I'd like to have some space at each side, but I don't want to have to create a table between every inserted photo in order to keep the text from running off the edges every time. I know it's an easy solution somewhere, but I don't know where it is.

This topic has been closed for replies.
Correct answer Nancy OShea

We don't use tables for layouts anymore.  Tables are for tabular data only.

Review the CSS Box Model.

CSS Box Model

HINT:  To add space between elements, use margins.  To add space between text and borders, use padding.

1 reply

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
April 24, 2019

We don't use tables for layouts anymore.  Tables are for tabular data only.

Review the CSS Box Model.

CSS Box Model

HINT:  To add space between elements, use margins.  To add space between text and borders, use padding.

Nancy O'Shea— Product User & Community Expert
Dr_Atomic
Dr_AtomicAuthor
Inspiring
April 24, 2019

I'm just laughing to myself. In the last few posts I've been told that tables aren't used anymore, "align" isn't used anymore... I suppose Insert > Images isn't used anymore, either. Nobody inserts anything now - that's old school, I'll bet.

I may have to go back to a simpler webpage building tool besides Dreamweaver. It's become too complicated for an occasional webpage builder like me who isn't a professional.

BenPleysier
Community Expert
Community Expert
April 24, 2019

In the past, we have used tables for the layout of our documents because there were no better alternatives. Even today we use document structures that mimic a table structure namely rows and columns.

<section class="container">

  <div class="row">

    <div class="col">col 1</div>

    <div class="col">col 2</div>

    <div class="col">col 3</div>

  </div>

</section>

The main reason for not using the <table> element is because of semantics, the ,table. element should be used for tabular data. See Tables Concepts • Tables • WAI Web Accessibility Tutorials

For the align attribute,  'The align attribute of <object> is not supported in HTML5. Use CSS instead'. See HTML object align Attribute

Lastly, it is not Dreamweaver that is the problem, it is the progress that has been made in web design/development. There are quite a few alternatives to Dreamweaver, most are not in the same class, meaning Dreamweaver is still one of the better overall tools to use.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!