![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Oct 2009
Posts: 2
OS: Windows 7
|
Urgent HTML/CSS Help wiil REWARD!
So I am running on IPB 3.0.4 and decided to try to implement dual columns for one of my sections. So, I got it to display in dual columns using the css/html below. Now, the descriptions wont go to a second line like normal forums, it will just cause the actual forum to just disappear.
What I mean is, if you are on a low res screen, and you cant fit the entire description on a single line, it will continue onto a second line right below. But, it will not do so...it just freaks out...causing the forum to disappear. Secondly, the other forums expand when they need to (down) so that it can fit the description and the sub forums, but on this dual column I have created it does not expand...the gradient stays the same...and the black splace just below the gradient also doesn't expand. I really need help and if this can be completed by today you will be REWARDED. The HTML Code:
<!--DUAL COLUMN -->
<div class='category_block block_wrap'>
<div class="main_cat_heading"><div class="mch_r"><div class="mch_l">
<h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title='{$this->lang->words['toggle_cat']}'>{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>
</div></div></div><!-- end main_cat_heading and sides -->
<div class="mcs_r"><div class="mcs_l">
<div class="dc_header">
</div>
<div class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'">
<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
<div class="dc_section" style="width: 50%; float: left;">
<div class="cat_icon_bg">
<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
{parse replacement="{$forum_data['img_new_post']}"}
</a>
<script type='text/javascript'>
ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "{$forum_data['id']}" );
</script>
<else />
{parse replacement="{$forum_data['img_new_post']}"}
</if>
</div>
<div class="dc_content" style="word-wrap: break-word">
<h2><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$forum_data['name']}</a></h2>
<p class='desc' style="word-wrap: break-word">{$forum_data['description']}</p>
</div>
</div>
</foreach>
<div class="clear"></div>
</div><!-- end ipb table -->
The CSS Code:
/*** Dual Column Styles ***/
.dc_section {
border-top: 1px solid #1b1b1b;
height: 65px;
width: 50%;
background:#000000 url({style_images_url}/row_bg.jpg) repeat-x top;
float: left;
}
.dc_section .dc_content {
margin: 10px 15px;
float: left;
}
.dc_section .cat_icon_bg {
background:#000000 url({style_images_url}/cat_icon_bg.jpg) no-repeat left top;
border-right: 1px solid #1b1b1b;
float: left;
padding: 10px;
height: 45px;
width: 50px;
word-wrap: normal;
clear: both;
}
.dc_section .dc_content h2 {
margin: 0;
padding: 0;
word-wrap: normal;
clear: both;
}
.dc_section .dc_content h2 a{
text-decoration: none;
font-size: .65em;
word-wrap: normal;
clear: both;
}
.dc_section .dc_content .desc {
font-size: 0.9em;
word-wrap: normal;
clear: both;
}
.dc_header {
background:#012150 url({style_images_url}/t_header_bg.jpg) repeat-x top;
height: 31px;
}
.div {
word-wrap: break-word; }
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#3 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,417
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Urgent HTML/CSS Help wiil REWARD!
So, then ea
ch sentence would look li ke this? Can we have a link for the site in question? I'm having a hard time picturing this.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
![]() |
| Thread Tools | |
|
|