Solved

CSS problem at small widths

Posted on 2015-02-03
3
96 Views
Last Modified: 2015-02-03
When viewing http://dev4.wpmate.net/ when the browser width is 600px or less, the columns (sidebars and content) are stacking correctly, but the content section is still showing too far right. It should be the whole way to the left the same as the sidebars.

I added this to the media section of the stylesheet for 600px:
      .page-template-three-column-php #content, .page-template-three-column-php .left-sidebar, .page-template-three-column-php .right-sidebar {
      width: auto;
      float: none;
      clear: both;
      }      

Can anyone see what's still making the content area push to the right?
0
Comment
Question by:Dzynit
3 Comments
 
LVL 7

Accepted Solution

by:
rgranlund earned 500 total points
ID: 40586978
.page-template-three-column-php #primary
line 1777 I think.  You have wrong CSS .  no floats are noted and a big margin to the left.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40586995
It looks like the problem is that the page is structurally unstable because of the duplicate id at lines 56 and 109.  Ids must be unique otherwise the CSS parser does not know what you are referencing (even if you use a class).  The HTML parser will generate code to prevent the browser from throwing an uncaught exception, but it does not attempt to decide which node to attach to the styles.

Cd&
0
 
LVL 14

Author Comment

by:Dzynit
ID: 40587015
That was it. Thanks much! A fresh pair of eyes always finds it :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MySQL database data submission 7 39
cookies analysis tools 2 29
How do i remove the outer scrollbar? 2 19
CSS measurement 10 17
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now