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.

Problem with divs and horizontal rules

Featured Replies

On my contact page the background disappears think there is some problem with the divs, as the border isn't properly wrapping round the container tag. Also on the homepage the <HR> between the 3 pictures and the twitter plugin and about me section doesn't appear in some browsers, for example opera, the read more links beneath those pictures align fine in all browsers offline but not opera when online.

 

I was also looking to align the navigation buttons up against the sliding banner to get rid of the white gap, i tried valign bottom to align it to the bottom of the nav div but it didn't work for some reason?

 

the website is www.cherrietestingwebsite.org

Edited by delboy1875

Ok firstly with regards to background image. You have a background image set in stylecontact.css

body {
font-size: 62.5%;
font-family: Helvetica, sans-serif;
background: url(images/stripe.png) repeat;
}

 

This image doesn't seem to exist in it's location but it is overwriting the correct background image set in style.css

body {
width: 962px;
margin: 0 auto;
background-color: #ffffff;
background-image: url('images/images.jpg');
background-attachment: fixed;
background-repeat: repeat-x;
}

 

With regards to border, on your contact page you have the footer div outside of the container div whereas you have it inside on every other page.

Can't answer your problem with <hr> and read more links.

 

As far as dropping the Nav onto the slider there a re a few things stopping it.

 

Firstly the 3 image classes for social link each have padding-top:10px ... remove it.

 

Then change the div height from 52px to 100% on navigationhome & social ..

 

That should do it !

incidentally you have a missing apostrophe on the front page

"Like myself I take people’s goals seriously, whether its weight loss..." should be "it's" and you shouldn't underline text that isn't a link ;)

  • Author

Great guys thanks for the help, very much appreciated. I will sort those things out and remove the underlines :)


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.