Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Text properties when using templates

Featured Replies

I've created a site using Dreamweaver and have based all pages on a .dwt template so they can be updated. The template has one editable region that I'd like to have different text properties for each page.

 

I have used the general h1, h2 classes for headings etc, but would like to have different alignments and spacing for the main text.

 

Is it best to rename the editable region to be specific to each page (main_index) then make a CSS rule for that div?

 

Thanks

If you have just one main content containing div on each page you could give that div a different id on each page and style each id p tag differently.

#page1 p { font-size: 20px; }
#page2 p { font-size: 25px; }

and this markup with a different id on each page. The styles above will only affect p tags, not h tags, li tags, etc.

<div id="page1">
<h1>.........</h1>
<p>Text</p>
<p>Text</p>
</div>

 

If you have several containing divs you could put the id on the page <body> tag:=

<body id="page1">
<div>
<h1>.........</h1>
<p>Text</p>
<p>Text</p>
</div>
<div>
<h1>.........</h1>
<p>Text</p>
<p>Text</p>
</div>
</body>

Edited by Wickham

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.