Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8455597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:19:28+00:00 2026-06-10T12:19:28+00:00

http://cssdesk.com/sv2Wq I’m trying to vertically align the text in respective <li> . The way

  • 0

http://cssdesk.com/sv2Wq

I’m trying to vertically align the text in respective <li>. The way I built it it doesn’t really seem possible to do since the box itself is the link.

This is the standard way to do a simple navbar, right?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>
</title>
</head>
<body>
<div id="wrapper">
<div id="navbar">
<ul>
<li><a href="home.php">Home</a></li>
<li><a href="news.php">News</a></li>
<li><a href="roster.php">Roster</a></li>
<li><a href="forums.php">Forums</a></li>
<li><a href="contact.php">Contact</a></li>
</ul> 
</div>
</div>
</body>
</html>

—

body, div, dl, dt, dd, ul, ol, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input,textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
}

body {
background-image:url("images/gradients/background_gradient.png");
}

#wrapper {
margin: auto;
min-height: 1152px;
width: 1536px;
}

#navbar {
border: 1px solid red;
height: 200px;
width: 100%;
font-size: 2em;
margin: 0;
}

#navbar a {
text-decoration: none;
}

#navbar ul {
display: block;
list-style-type: none;
}

#navbar ul li a {
float: left;
display: block;
height: 200px;
width: 20%;
text-align: center;
letter-spacing: -0.5px;
}

#navbar ul li :hover{
background-color: white;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:19:30+00:00Added an answer on June 10, 2026 at 12:19 pm

    It’s possible – just add line-height

    #navbar ul li a {
        display: block;
        float: left;
        height: 200px;
        letter-spacing: -0.5px;
        line-height: 200px; /* this */
        text-align: center;
        width: 20%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get http://cssdesk.com/bQTEf to look like https://i.stack.imgur.com/jhtEh.png
http://jsbin.com/eyeqer/2/edit var x = document.evaluate('//p/following-sibling::text()', document, null, XPathResult.ANY_TYPE, null); var theTitle = x.iterateNext(); while
In the follwing example http://cssdesk.com/G5q4V I do not understand the following: In the div
I just want to align my text vertically relative to the picture and put
http://jsbin.com/uxepap/3/edit Here is div with links inside. I'm trying to replace comma inside last
http://jvalentino2.tripod.com/dft/index.html My code is really just a copy of the above: package it.vigtig.realtime.fourier; import
I have placed the corresponding code at http://cssdesk.com/QSwDG The sprite (referenced as 'circle.png' in
I got this CSS layout: http://www.cssdesk.com/Lgg4q HTML <div id=wrap> <div class=img-wrap> <img src=http://unikatmag.de/wp-content/uploads/2010/11/team-dummy.jpg />
http://cssdesk.com/PgtbW I want to use as much HTML and CSS as possible and the
http://jqueryui.com/demos/accordion/ You can do $('#itename').accordion('activate', 0) to make an accordion closed but that'll change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.