webgrid CSS to remove left margin

I am having a devil of a time aligning my webgrid on the page as I would like it. My web grid has a 4 inch left margin and a 1 inch margin on the left.

I have a css on the page:

 
 .webGrid {
        margin: 4px;
        border-collapse: collapse;
        width: 200px;
        background-color: #B4CFC3;
    }

Open in new window


but this does not seem to adjust the left margin. I would love to see the web grid as close tot he left side of the browser window as possible. Is there a some css i am missing to allow my webgrid to move fully to the left? align-items and align-content does not seem to be what i am looking for.


Thank you for any help
JustinAsked:
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.

Obadiah ChristopherCommented:
My web grid has a 4 inch left margin and a 1 inch margin on the left.
I am not sure I understood that correctly.

If you are looking to move the web grid as close to the left side of the browser window, you would have to remove the margin property from the CSS. Or try the individual margins, i.e. margin-left : -4px;
0
JustinAuthor Commented:
Thank you for replying. I seemed to have left out a word in that sentience. I was trying to say that I have a 4 inch margin on the left and a 1 inch margin on the right.

I was hoping there would be an over ride to that left side margin, something like

#WebGrid_IwanttoChange {
margin-left: 1px;
}

but margin-left didnt work, I do not want to change the css for the entire site so i dont want to change the site.css less we are calling that specific webgrid or that specific page.
0
JustinAuthor Commented:
I ended up centering my webgrid as I could not find an override for all margins on a specific page
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
JustinAuthor Commented:
no solutions given for problem
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
ASP.NET

From novice to tech pro — start learning today.