• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to Center Menu Items?

Contributor ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

In my navigation bar, items appear centered on my desktop computer, but on a laptop or tablet, they are not.

How can I center them?

www.winvoices.com

Views

196

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Given the age of your code, I think it looks fine. 

 

image.png

 

But you do have fatal code errors.

https://validator.w3.org/nu/?doc=https%3A%2F%2Fwinvoices.com%2F

 

There is a stray e on your first line of code, before the document type.  You can ditch all the conditional junk, too. 

 

e<!doctype html>
<!-- saved from url=(0022)http://internet.e-mail -->
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>

 

Replace it with this:

<!doctype html>
<html lang="en">
<head>

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Your image is how it appears on a smartphone. This is how it appears on a tablet.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

Right, there's not enough real estate for a menu that size on all devices.  Something has to give. Learn to live with it.  Or make the menu collapsed on ALL devices.  Fixing the fatal code errors is a greater priority, IMO.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

LATEST

I made the changes you suggested and thanks so much for that!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines