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 to create this text? link in topic

Featured Replies

Hey,

 

How would I go about creating text like http://www.fivesite.co.uk/ - I mean the part that says "award winning business web designers and website developers - our web design team builds brands, generates leads and boosts online sales for our varied clients". Could you also explain the <div> tags part as well please. I've tried creating it, and the CSS and HTML code looks okay to me, I just can't get it to appear on the page.

 

Regards

Ryan

Code as used on the website

 

HTML

 

<h1 class="line1">
award winning business
<font color="#8f115e">web designers</font>
and
<font color="#8f115e">website developers</font>
- our
<font color="#8f115e">web design</font>
team builds brands, generates leads and boosts online sales for our
<a href="/web_designers_portfolio/">varied clients</a>
</h1>

 

CSS

 

h1.line1 {
 color: #B1B3B5;
 font-size: 2.2em;
 font-weight: bold;
 letter-spacing: -1px;
}

h1 {
 margin: 0;
 padding: 0;
 text-transform: lowercase;
}

Edited by benhawk

It's invalid HTML, as it contains the <font> tag, which is deprecated.

 

Much better to use valid XHTML elements. In fact, the best method:

 

<h1>
award winning business <em>web designers</em> and <em>website developers</em> - our <em>web design</em> team builds brands, generates leads and boosts online sales for our <a href="/web_designers_portfolio/">varied clients</a>
</h1>

 

 


.homeColumn2 h1 {
 color: #B1B3B5;
 font-size: 2.2em;
 font-weight: bold;
 letter-spacing: -1px;
 margin: 0;
 padding: 0;
 text-transform: lowercase;
}

.homeColumn2 h1 em {
 color:#8f115e;
 font-style:normal;
}

 

The .homeColumn2 is the div area that the h1 tag sits within. It's far better to use this for styling than elements which have implicit meaning. Neater, easier to maintain etc.

 

There's enough bad code out there already without teaching people how to code incorrectly!

 

The reason for the use of the <em> tag is semantics:

 

http://www.w3schools.com/tags/tag_phrase_elements.asp

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.