div 定位问题
我正在开发一个用 div
布局的网站。 我特别遇到了一个问题:训练照片 div
。
如果您访问 http://php.wmsgroup.com/eofd6.org/education。 html 您会在左侧导航下方看到一张已下拉的照片。 我希望它紧贴在导航框下方。 我已经尝试了几种不同的方法来调整其定位以及主要内容 div
的定位,但我无法得到正确的结果。
任何帮助,将不胜感激。 样式表的链接是 http://php.wmsgroup.com/eofd6.org /in.css
谢谢!
I am working on a site laid out with div
s. I am having trouble with one in particular: the training photo div
.
If you go to http://php.wmsgroup.com/eofd6.org/education.html you'll see a photo underneath the left nav that has dropped down. I want it to snap right under that nav box. I have tried several different things with its positioning as well as the main content div
s positioning and I can't get it right.
Any help would be appreciated. The link to the style sheet is http://php.wmsgroup.com/eofd6.org/in.css
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
#content 向右浮动,而不是向左浮动。
Float #content right, not left.
为了获得更可预测的结果,我将创建一个整体包装器,然后创建 2 个列包装器。 您现在已经接近这个布局了,所以这将是一个简单的修复。
In order to get more predictable results, I would create an over-all wrapper, then 2 column wrappers. You're close to this layout now, so it would be a simple fix.
您不能更改标记以将 #training_photo div 包含在 #nav div 中吗?
Can't you change the markup to include the #training_photo div in the #nav div?