remove exceesive top margin on sidebar on mobile

I am trying to position the right sidebar so that it looks good on desktop AND mobile.  Ideally, I would like the "No obligation quotes" (in the right sidebar) to be even with the top of the trio of photos in the left.  When I get it looking good on desktop, the mobile version gets a huge gap.  Any advice would be great!

Beta site
http://8a7.a2f.myftpupload.com/about-us/
nsitedesignsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mukesh YadavFull Stack DeveloperCommented:
Try this ;)

You just need to add margin-top and add !important for the padding property for rule .sidebar .widget inside this media query @media only screen and (max-width: 1023px) {

So right now you have:
.sidebar .widget {
    padding: 30px;
}

Open in new window


replace above code with the following one:
.sidebar .widget {
    padding: 30px !important;
    margin-top: 10px !important;
}

Open in new window


That's it;
0
nsitedesignsAuthor Commented:
Unfortunately, that did not move the sidebar down on desktop.  Plus, the mobile version still has too big of a gap between elements.
https://screencast.com/t/qktLiVl0

I tried changing margin:top to 60px and it still doesn't show any change on desktop.  I dumped cache and viewed in private window.  No change.
0
Mukesh YadavFull Stack DeveloperCommented:
Can you share the updated code?
I can't see the updated code on the link you shared in your question.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

nsitedesignsAuthor Commented:
I want to move ENTIRE sidebar content down and not increase the white space between the widget text items.  When I modify .sidebar, it applies that top padding or margin to ALL sidebar text elements.  

I modified this but it still impacts all elements

.sidebar-primary {
    margin-top: 70px;
}

Open in new window

0
nsitedesignsAuthor Commented:
Sorry, here it is.
@media only screen and (max-width: 1023px) {
 .sidebar .widget {
    padding: 30px !important;
    margin-top: 60px !important;}
  
  .sidebar-primary {
    margin-top: 70px;!important;
}
}

Open in new window

0
Mukesh YadavFull Stack DeveloperCommented:
We need to reduce the margin-top: 60px !important; so make it 10px instead of 60px/70px.

The code margin-top: 70px;!important; is not correct it should be:
margin-top: 70px !important; no semicolon(;) before !important
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nsitedesignsAuthor Commented:
My mistake on the error on the code.

I put in what you advised and saw no difference.

I then modified the code to the following and still see no difference.
@media only screen and (max-width: 1023px) {
 .sidebar .widget {
    padding: 30px !important;
    margin-top: 10px !important;}
  
  .sidebar-primary {
    margin-top: 10px !important;
}
}

Open in new window


You can tell by this screen shot that the widget is still sitting flush left.  The left margin should be 30px and I am not sure why it is displaying incorrectly.

https://screencast.com/t/HFoSStcdkk
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.