LogicWeb Hosting Site

Hello folks. Having this issue with the black navigation bar background is about half the width of the page when viewing on tablet or phone. Works fine in desktop otherwise.www.logicweb.com
Your help is appreciated.

Code:

  • <header>
  • <div class=“wrapper”>
  • <!-- LOGO –>
  • <a href="[COLOR=#008800]http://www.logicweb.com[/COLOR]" title=“LogicWeb” class=“logo”><img src=“/assets/img/logo.png” alt=“LogicWeb”></a>
  • <!-- PARTNERS –>
  • <a href="[COLOR=#008800]https://www.logicweb.com/affiliate[/COLOR]" class=“btn partners”>AFFILIATES</a>
  • <!-- CLIENT LOGIN –>
  • <a href="[COLOR=#008800]https://www.logicweb.com/billing/clientarea.php[/COLOR]" class=“btn client-login”>CLIENT LOGIN</a>
  • <!-- LIVE CHAT –>
  • <a href=“javascript:void(0);” onclick="olarkCOLOR=#666600[/COLOR]" class=“btn live-chat”>SALES CHAT</a>
  • <!-- PHONE NUMBER –>
  • <a href=“tel:18775644293” class=“btn phone-header”>1.877.LOGICWEB</a>
  • </div>
  • <div class=“clear-both”></div>
  • <nav>
  • <div class=“wrapper”>
  • <!-- TOP NAV –>
  • <ul>
  • <li<?php
  • if($homePage == 1) {
  • echo ’ class=“is-on”';
  • }
  • ?>><a href=“/”><span>HOME</span></a></li>
  • <li<?php
  • if(stristr($_SERVER[“PHP_SELF”], “web-hosting”)) {
  • echo ’ class=“is-on”';
  • }
  • ?>><a href=“/web-hosting/”><span>WEB HOSTING</span></a></li>
  • <li<?php
  • if(stristr($_SERVER[“PHP_SELF”], “resellers”)) {
  • echo ’ class=“is-on”';
  • }
  • ?>><a href=“/resellers/”><span>RESELLERS</span></a></li>
  • <li<?php
  • if(stristr($_SERVER[“PHP_SELF”], “virtual-private-servers”)) {
  • echo ’ class=“is-on”';
  • }
  • ?>><a href=“/virtual-private-servers/”><span>VPS</span></a></li>
  • <li<?php
  • if(stristr($_SERVER[“PHP_SELF”], “dedicated-servers”)) {
  • echo ’ class=“is-on”';
  • }
  • ?>><a href=“/dedicated-servers/”><span>DEDICATED SERVERS</span></a></li>
  • <li<?php
  • if(stristr($_SERVER[“PHP_SELF”], “cloud-hosting”)) {
  • echo ’ class=“is-on”';
  • }
  • ?>><a href=“/cloud-hosting/”><span>CLOUD HOSTING</span></a></li>
  • <li<?php
  • if(stristr($_SERVER[“PHP_SELF”], “other-services”)) {
  • echo ’ class=“is-on”';
  • }
  • ?>>
  • <a href=“/other-services/email-marketing.php”><span>OTHER SERVICES</span></a>
  • <div>
  • <?php includeCOLOR=#666600;?>[/COLOR]
  • </div>
  • <li<?php
  • if(stristr($_SERVER[“PHP_SELF”], “”)) {
  • echo ’ class=“is-on”';
  • }
  • ?>><a href=“/other-services/which-web-host.php”><span style="margin-left: 405px">You want IT. We got IT.</a><span style="font-size:8px; margin-top:13px; color:#B9B9B9; margin-left:-8px; float:right">SM</span></span></li>
  • </ul>
  • </div>
  • <div class=“clear-both”></div>
  • </nav>
  • </header>

Please see attached to know what I’m referring to. Still not able to figure this out. Thanks.

[COLOR=#434343][FONT=helvetica]Someone elsewhere mentioned this:

[/FONT][/COLOR]

Inside your <nav> there is a <div class=“wrapper”>
[COLOR=#434343][FONT=helvetica]

[/FONT][/COLOR][COLOR=#434343][FONT=helvetica]

[/FONT][/COLOR]

  • .wrapper {
  • margin: 0 auto;
  • max-width: 1300px;
  • min-width: 960px; /* bad start for a responsive design */
  • padding: 0 40px;
  • }

[COLOR=#434343][FONT=helvetica]

[/FONT][/COLOR]I tried a few variations but none work. I removed the div wrapper from the <nav>. I then tried adding style=“margin: auto” to the <ul>. I also tried adding it to the <nav>, none of this worked as they all resulted in a left aligned menu.

Thanks in advance.

Try adding this to your CSS:

header {min-width: 1040px;}

Thanks, but that wasn’t it unfortunately. This has baffled me and others that have tried to help so far. Very odd issue.

Leave it in there, all the same, as it fixes issues on the desktop. Perhaps also change this:

.wrapper {
max-width: 1300px;
min-width: [COLOR="#FF0000"]960[/COLOR]px;
margin: 0 auto;
padding: 0 40px;
}

to

.wrapper {
max-width: 1300px;
min-width: [COLOR="#FF0000"]1040[/COLOR]px;
margin: 0 auto;
padding: 0 40px;
}

You have other sections set to width: 960px, but you have 40px padding on each side too, meaning that the real width is 1040px, so you need to take that into account with all your measurements.

Thanks. Still the exact same. I’m baffled. Never had so much confusion using CSS before.

The desktop was always working by the way, it’s specifically mobile (phones) and tablets that it does not render right. The screenshots shows an example.

Delete this property:


style.css Line 16:
.wrapper {
    [COLOR="#FF0000"]padding:0 40px;[/COLOR]
}

EDIT: Never mind. That does not seem to work, either. I was testing incorrectly. Sorry.

Actually that did work! I tested it in Chrome on my iPhone, works thank you very much.

I do have one last small problem and appreciate your effort here. The slogan on the right in that same black bar, its getting forced to a new line below only on mobile/tablet browsers. I tried adding a float:right condition, that didn’t fix it.

Odd, actually the first issue is not resolved. It did extend out, but not fully.

Edit:

Strange, this is what I noticed. The home page it now works fine in the header, but not the footer.

The rest of the site, issue is still there top and bottom.

This won’t settle things, but I notice that you’ve added min-width: 1040px to elements on which you also have left/right padding of 40px, so you are chasing your tail here. Make the max width 960px on elements that have the side padding.

What do you mean? Your the one that suggested changing 960 to 1040 and removing the padding (40px) which I did.

My perception was that you had a width of 960px on quite a few sections, but on some you had left/right padding of 40px, too, so there was a mismatch between the sections with and those without padding. My suggestion was to increase the width of any sections without padding to 1040px so that their widths would all match. I made a silly mistake in quoting one that also had padding on it—can’t believe I didn’t see that! O well, sorry.

The complex nesting of elements on the page makes it tricky to debug, TBH. It would be better to have an outer wrapper for each section (or visual band of color, if you will), width: 100%, and then an inner wrapper for each section set to width: 960px and centered. Then all the content in those inner wrappers will have a consisten width to fit into. Here is a basic example of what I mean: http://pageaffairs.com/code-archive/full-width-bands/floated-columns.html

The attached code will help you demonstrate / play and see what it happening. Diddle with the width and padding values and see what happens.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>Full Width Background Color</title>
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <meta http-equiv="content-language" content="en-us">
    <style type="text/css">

body {
    padding:0;
    margin:0;
}
.outer {
    background-color:#abc;
    min-width:760px;
    padding:40px;
}
.inner {
    background-color:#cba;
    width:800px;
    padding:1px 20px;
}

    </style>
</head>
<body>

<div class="outer">
    <div class="inner">
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.</p>
    </div>
</div>

</body>
</html>

Thanks guys but I’m still not sure how to go about correcting this issue, even with the sample code. The original coder/designer did not complete the project and I was left to do so.

Give the following a try.

This will fix the background colors on your page, but there’s a caveat.

styles.css, Line 16
Add the BLUE padding property and change the min-width value:


.wrapper {
    margin: 0 auto;
    max-width: 1300px;
    min-width: [color=blue]960px;[/color]
    [color=blue]padding:0 40px;[/color]    /* the page looks better with this padding :) */
}

virtual-private-servers
Delete the RED inline property (and the stray semicolon, too):


<section>
    <div class="wrapper">
        <div class="page-copy" style="float:left; [color=red][s]width:1220px;;[/s][/color] margin-bottom:16px;">

Expected “side effect” (the caveat):

Because the forced width of div.page-copy has been deleted, the content in that box will wrap. The layout may need to be reconsidered.

Note the inline width of the text box:

<div style=“width:740px; padding:0 15px 0 0; float:left;”>

The inline width of 740px may need to be reduced considerably or eliminated; thus, the redesign.

I’m not sure where that width:1220px;; is. I searched everywhere, can’t find such a code.

The URI, http://www.logicweb.com/ , is not responding (“taking too long to load” per Firefox).

Loads instantly here for me on east coast (US). Not sure why it’s loading slow for you, but I’m accessing it external of the network.

I’m at home in New Jersey.


Ping request could not find host http://www.logicweb.com/. Please check the name and try again.

In fact, none of your signature links are responding, either.

Who knows…

Look at line 156 in the attached screen shot of the virtual-private-servers page.