The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> How can I get my nav and h1 on the same line?, Navigation bar
post Jun 11 2018, 01:03 AM
Post #1

Group: Members
Posts: 1
Joined: 11-June 18
Member No.: 26,657

Sorry, I could use some advice, I am having a difficult time getting the nav on the same line as my h1. I am using boot strap and col-sm-8 and col-sm-4 but I cant get them on the same line.

<!doctype html>
<link rel="stylesheet" href=""/>
<meta charset="utf-8">
<link href="RoyalPetmotel.css" rel="stylesheet" type="text/css">
<!--added below-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title> Royal Pet Motel </title>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src=""></script>
<script src=""></script>
<header class="container">
<div class = "row">
<h1 class="col-sm-4">Royal Pet Motel</h1>
<nav class= "col-sm-8 text-right">
<section class="jumbotron">
<div class ="container">
<div class ="row text-center">
<h2>25 Years of Service</h2>
<h3>Premier boarding and Grooming</h3>
<a class="btn" "bnt-primary" href="#" role= "button">Learn more</a>
<section class="container">
<div class = "row">
<figure class="col-sm-6">
<p> Grooming </p>
<img src="dog.jpg"/>


<figure class ="col-sm-6">
<p> Boarding Dogs </p>
<img src="#"/>



<div class = "row">
<figure class= "col-sm-6">
<p> Cats Boarding</p>
<img src="#"/>


<figure class ="col-sm-6">
<p> Cats Grooming</p>
<img src="#"/>



<section class ="container">
<div class ="row">
<p class ="col-sm-4">
&copy; 2018 Royal Pet Motel
<ul class ="col-sm-4">
<li class ="col-sm-2"></li>
<li class ="col-sm-2"></li>




User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
post Jun 11 2018, 06:05 AM
Post #2

Don't like donuts. Don't do MySpace.

Group: WDG Moderators
Posts: 18,138
Joined: 9-August 06
Member No.: 6

Is RoyalPetmotel.css in any way relevant? If so we need to see that too. A link to the online page is preferable, if possible. Otherwise post the CSS here.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 21st February 2019 - 09:26 PM