图库不会以页面为中心
I am trying to center my gallery array. I tried:
- margin-left:auto; margin-right:auto
and - margin:0 auto;
and
-text-align:center;
and have had no luck?
Here is the link
Any help is greatly appreciated!
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是你的问题:
它是居中对齐的,但你在
ul
上有左填充(30px)将其更改为 0px 将使画廊居中对齐:
我不确定这会产生什么影响在其他元素上,所以也许只为画廊创建第二个类:
This is your problem:
It is center aligned, but you've got left padding on the
ul
(30px)Changing this to 0px will center align the gallery:
I'm not sure what implications this will have on other elements, so perhaps create a second class just for the gallery: