TouchCoding on "[Theme: onetone] Can't Center Table!"

ساخت وبلاگ

TouchCoding
Member
Posted 15 hours ago #

Hi there bnLauren! :)

Your problem can be solved with some simple css. You need to define a width for the panel-grid based on the user's screen size and then set the margin left and right to auto.

Try this css:

@media only screen and (min-width: 1200px){ #pg-4-1, #pg-4-2 { width: 1170px;
}
}
@media only screen and (min-width: 992){ #pg-4-1, #pg-4-2 { width: 970px;
}
}
@media (min-width: 768px)
#pg-4-1, #pg-4-2 { width: 750px;
}
@media only screen and (min-width: 768px){ #pg-4-1, #pg-4-2 { width: 750px;
}
}
#pg-4-1, #pg-4-2 { margin-right: auto; margin-left: auto;
}

If you don't know how to apply css to your website, read this article: http://touchcoding.net/how-to-apply-custom-css/

Hope this helps you out :D

bnlauren
Member
Posted 13 hours ago #

Hi TouchCoding,

I tried applying the Custom CSS and no success. I'm trying to get it to center no matter the screen size and it's still shifted towards the right :(

TouchCoding
Member
Posted 11 minutes ago #

How did you apply the css? Are you sure you applied it correctly? Try changing the background color to red or something like that, just to see if your css sticks to your site.

- - , .

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 165 تاريخ : دوشنبه 26 بهمن 1394 ساعت: 20:50