我的“主要内容”是从我的侧边栏末尾开始...帮助!

发布于 2024-10-06 08:06:52 字数 1295 浏览 1 评论 0原文

好的,请看看我的问题:

http://phone7forum.com/viewforum.php?f=2

http://phone7forum.com/viewtopic.php?f=2& ;t=4

我一直在编辑 phpBB 论坛并添加所有 css 自定义内容,并且已经取得了很大进展,但是您可以在上面的 2 页中看到我遇到的问题。我的自定义“主要内容”框一开始运行良好,并且正好位于页面顶部中间我想要的位置,但是当我将实际的 phpBB“论坛代码”粘贴到其中时,论坛内容将从我左边的位置开始侧边栏结束(位于页面底部)。

我的网站是一个“流动宽度”网站。 “左侧边栏”向左浮动,宽度为 300px,高度为 100%。 “主要内容”的左边距为 345 像素,可将其推过侧边栏,因此它将位于侧边栏的右侧。这就是我的设置,它似乎对我来说工作得很好,直到我开始添加“论坛内容”。有人知道如何修复吗?你们认为问题存在于论坛现有的 css/标记中还是我在布局网站的方式中造成的问题?

以下是我的问题的屏幕截图(如果由于某种原因您在浏览器中看到其他内容):

http: //phone7forum.com/images/1st_page_wrong.jpg

http://phone7forum.com/images/ 2nd_page_wrong.jpg

这是它们应该看起来的样子,或者我正在尝试做的事情(Photoshop的赞美):

http://phone7forum.com/images/1st_page_right.jpg

http://phone7forum. com/images/2nd_page_right.jpg

我非常需要帮助!谢谢各位的观看!!

Ok, please look at my problem:

http://phone7forum.com/viewforum.php?f=2

http://phone7forum.com/viewtopic.php?f=2&t=4

I've been editing a phpBB forum and adding in all of my css customizations and I've gotten pretty far along, but you can see in the 2 pages above the problem I'm faced with. My custom "main content" box starts out fine at first and sits exactly where i want it to at the top middle of the page, but when i stick the actual phpBB "forum code" inside it, the forum content will start where my left sidebar ends (way down at the bottom of the page).

My website is a "fluid width" website. The "left sidebar" is floated to the left, has a width of 300px, and height 100%. The "main content" has a left margin of 345px to push it past the sidebar so it will sit to the right of it. So thats my setup and it seemed to be working perfectly fine for me until i started adding in "forum content". Does anyone have any idea on how to fix? Do you guys think that the problem exists in the forum's existing css/markup or is it a problem that I've created in the way I've layed out my website?

Here are screen shots of what my problem is (if for some reason you see something else in your browser):

http://phone7forum.com/images/1st_page_wrong.jpg

http://phone7forum.com/images/2nd_page_wrong.jpg

Here's how they should look, or what I'm trying to do (compliments of photoshop):

http://phone7forum.com/images/1st_page_right.jpg

http://phone7forum.com/images/2nd_page_right.jpg

I'm desperate for help! Thanks guys for looking!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没有你我更好 2024-10-13 08:06:52

您的 content div 没有向左浮动。您可以只添加 float: left 并删除左侧 margin 吗?

更新

Muhaahaa,我找到了:

html body#phpbb.section-viewforum div#main_wrap div#content div#content2 div#mybox_wrapper div#mybox-wrapper-content div#mybox-wrapper-content-inner div.forumbg div.inner span.corners-bottom

有一块空地。删除它,一切都会好起来的。 :D

Your content div dosen't float left. Can you just add float: left and remove the left margin?

update

Muhaahaa, I found it:

html body#phpbb.section-viewforum div#main_wrap div#content div#content2 div#mybox_wrapper div#mybox-wrapper-content div#mybox-wrapper-content-inner div.forumbg div.inner span.corners-bottom

has a clearing. Remove it and all will be fine. :D

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文