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.

hr.symbol issue

Featured Replies

I have now got our website online but I have noticed an issue with the hr.symbol that I use on some of the pages. The horizontal rule appears to work fine on all browsers apart from Internet Explorer. In Internet Explorer half of the image is missing, the line is pushed to the left and there is no break in the line.

Any suggestions on how to resolve this would be appreciated.

Our website is OwlTree Web Solutions

Don't use images in HR tags. A good way to create these dividing images is using a pseudo element with the image set as the background property. This will work on all modern browsers IE8 and up.

  • Author

Thanks for your reply. How would I change my CSS to work as a pseudo element so that I can get the same look?

 

My current css is below:

 

hr.symbol {
width: 80%;
padding: 0;
border: none;
border-top: medium double #818181;
color: #006e0f;
text-align: center;
}
hr.symbol:after {
content: url(../images/symbol.png);
display: inline-block;
position: relative;
top: -1.0em;
font-size: 1.5em;
padding: 0 0.25em;
background: #f5f5f2;
text-align: center;
}

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.