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.

2 Beginners Problems

Featured Replies

Hello

 

I am starting work on my first-ever paid project (mates rates but it is a step in the right direction) and I already have a couple of stumbling blocks that I hope I can ask for advice on.

 

Firstly I wanted the nav bar at the top to have About & Contact on the right - but it is placing it on the next line. How can I bring it back onto the same line?

 

Secondly, why do I have a 10px (approx) white border left and right? Looks odd.

 

Can anyone kindly advise?

 

Web page is currently hosted at http://jameswinfield.co.uk/Emma.html.

 

Thanks

James

Remove the padding/margin from your HTML,body {} in your CSS.

 

I'd explain the other issue but I'm on phone so its a bit of a hassle. Sorry if this is useless! Just I'm out at the moment so I can't do much in terms of explanation.

This will fix the issues with the new line on the navigation, just replace Emma.css with this:

 

.nav a {
    color: #5a5a5a;
    font-size: 14px;
    font-weight: bold;
    padding: 14px 20px;
    text-transform: uppercase;
}

.nav li {
    display: inline;
}

/* no Pull left was added */
.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.jumbotron {
    background: url(Emma3.jpg);
    height: 1200px;
    background-repeat: no-repeat;
    background-color: black;
    padding: -10px;
    /* add this to fix the float issues */
    clear: both;
}

.jumbotron .container {
    position: relative;
    top:10px;
}

.jumbotron h1 {
    color: #fff;
    font-size: 48px;  
    font-weight: bold;
    text-transform: uppercase;
}

.jumbotron p {
    font-size: 20px;
    color: #fff;
}

.cc {
    font-size: 11px;
    color: #5a5a5a;
    float: right;
}

Edited by D4Y0

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.