How do I center my navigation bar on my webpage? [closed] - html

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I cant manage to center my navigation bar. I am really new to web design and any help would be much appreciated. Here is the navigation bar.

Change the rules for ul to:
ul#menu {
list-style-type: none;
margin: 0 auto;
padding: 0px;
position: relative;
width: 705px;
}

ul {
list-style-type:none;
margin:0;
padding:0;
position: absolute;
left:25%;
right:25%;
}
Or you can set your left right as per your choice .

Related

White bar in CSS showing but not defined [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I am having some trouble trying to figure out what's happening with my page. As you can see below on the mobile version, it appears right next to the top part of the logo.
My current code for nav (the element in blue) is:
nav {
top: 0;
left: 0;
text-align: center;
font-style: italic;
font-weight: 700;
font-size: 25px;
}
Since it maybe hard to tell just by the picture, you can find the code to this page in https://jsfiddle.net/bg5srnj8/1/
nav > img {
vertical-align: middle;
margin: 0px 25px 10px 25px;
}
you had a 10px margin top in the image.
I hope it works.

Removing dots from a navbar [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I found this wonderful navbar online but I don't find the line in the code to remove the dots.
The current Looking: https://gyazo.com/0531847d45ebfc31d7a15b09b5404c9f
JSFiddle: https://jsfiddle.net/ujzge3sg/
#import url(http://fonts.googleapis.com/css?family=Open+Sans:700);
nav {
display: block;
width: 100%;
}
.navbar {
background: #f96e5b;
width: 100%;
}
.navbar-fixed-top {}
.navbar ul {
margin: 0;
padding: 0;
line-height: 1;
display: block;
zoom: 1;
}
Here's a tutorial of list-style-type, or in your words, those are the black dots.
Just do list-style-type: none; on the li list. It would help if you would learn HTML and CSS before asking a question about it.
Update
After seeing the full HTML and CSS, I saw the 'problem'. There was an after adding squares after every li. To remove the squares, just delete from line 68-78 in the JSFiddle.
Here's an updated version: https://jsfiddle.net/d7Lrartp/

Links are unclickable [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Hi,
I have managed a blog(wordpress) for a company and pasted their header footer code to make the site look uniform. But the social icons in header are not clickable whereas they are clickable in rest of the website. Link to the blog is: Blog
Thank you.
Try this -
.social > li > a
{
padding:5px 3px;
}
.top-bar a
{
background:#0091EA none repeat scroll 0 0;
z-index:9999;
position:relative;
}
This is the solution:
.top-bar {
background: #0091ea none repeat scroll 0 0;
clear: both;
color: #ffffff;
float: left;
font-size: 12px;
padding: 5px 0;
width: 100%;
z-index: 99;
position: relative;
}

How to make the footer to be full width? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
How to make full width footer with <footer> tag.
I'm not able to use div with id and make it looks like footer (which is pretty simple).
body{
background: #333333;
}
footer{
float:left;
background: lime;
padding:15px 0;
width:100%;
}
<footer></footer>
https://jsfiddle.net/g4b3oakd/
When i use code like this it's not in full width of page.
Is possible to do something like this?
Add margin: 0; like this: https://jsfiddle.net/DIRTY_SMITH/g4b3oakd/1/
body{
margin: 0;
background: #333333;
}
footer{
float:left;
background: lime;
padding:15px 0;
width:100%;
}

position text respect menu [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have menú in my web of margin left, but I want put text in the next of menú, of the left relative this. But I make a div in css and this put below of menú.
What position I need put?
I have a div inside other div.
example code this:
http://jsfiddle.net/a70aabub/
Thank you!
Add float:left for text class.
#menu ul {
margin: 0px;
padding: 0px;
width: 200px;
float:left
}
#menu ul li {
background-color: #999;
}
#state {
position: relative;
left: 0px;
float:left
}
http://jsfiddle.net/a70aabub/1/