Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

HT indent text without going border to border?

Participant ,
Apr 23, 2019 Apr 23, 2019

Copy link to clipboard

Copied

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.

Views

516
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 23, 2019 Apr 23, 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.

Votes

Translate
Community Expert ,
Apr 23, 2019 Apr 23, 2019

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 23, 2019 Apr 23, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2019 Apr 23, 2019

Copy link to clipboard

Copied

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, the only real Dreamweaver alternative.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

LATEST

Dr_Atomic  wrote

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.

If your site isn't mobile friendly, Google penalizes you in web searches. 

Mobile-Friendly Test - Google Search Console

I don't think you'll find a single modern web authoring tool that uses tables for layouts.   Tables are not mobile friendly.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines