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.

How Do I Set Different Text Sizes In One Div?

Featured Replies

design mode by design mode i take it you are using Dreamweaver

the easiest way to do this is go into the split code/design view and add this before </head>


.strong {
   font-size:your_size_here;
}

and then click on the element and give it a class of strong

  • Author

design mode by design mode i take it you are using Dreamweaver

 

the easiest way to do this is go into the split code/design view and add this before </head>

 

.strong {
   font-size:your_size_here;
}

and then click on the element and give it a class of strong

 

 

Okay. The thing is that I have many bold texts but I only want one bold title to be different size. What do I do then?

Okay. The thing is that I have many bold texts but I only want one bold title to be different size. What do I do then?

 

Have a single class determine that bold title's attributes.

 

CSS:

.yourtitle{
    font-size: 14px;
    font-weight: bold;
}

Obviously change the '14' size to whatever you like. Then, place the bold title in a <span> with that class.

 

HTML:

<span class="yourtitle">Bold Title Here</span>

Should be what you're looking for. If it's just a one-off title, then you could change it from a class to an ID, which is better practice but by no means essential.

Edited by throzen

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.