View Single Post
  #5  
Old 07-19-2009, 05:55 AM
JakeS JakeS is offline
 
Join Date: Feb 2006
Location: United Kingdom
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well googling, tells me all this is to do is so the computer can read it?! I want people to read my site, not computers

I got my header working fine, that looks as it used to now, using only divs, were ul & ol etc would not be very useful anyway.

However, I've now got 2 problems.

Main content box has a margin.. and is still there, BUT. It's now got a frigging white border in place of a margin were it never used to, but had the margin matching the colour needed. Is there a way to fix that?

And now, I used to have 2 tables next to each other, one on the left, one on the right.. now it sits under it now it's a div!

Way to fix that?

Heres my code (without header and footer, as the main index pulls them in with a php require)

Code:
<div class="page">
<div class="toptr">

<div class="td100">
<br />
<div class="tmain">
    <div>
        <div class="tcat">&raquo;CobraOS</div>
    </div>
    <div>
        <div class="menuboxmiddle">Welcome!</div>
    </div>

    <div>
        <div class="alt1">
        <div class="alt1">
            <div>

    
                
            <!-- INFO -->
            
            
                <div style="margin: 10px;">
                    ~snip text content~
                <br /> <br />
               ~and again it's just text~
                </div>
            </div>

        </div>
        </div>
    </div>

</div>
<div>
<div class="tmenu">
<div>    
    <div class="tcat"><strong>&raquo;Screenshots</strong></div>
</div>
<div>
    <div class="menuboxmiddle">Gallary</div>
</div>
<div>
    <div class="alt1">
        <video src="sources/video/front.ogv" controls="controls" class="frontvid">  
                Hmm. Seeing this text? Here's some possible reasons: <br />
                <br />
                1. Your blocking all webpage scripts <br />
                2. Your browser does not like HTML5 video <br />
                3. Your browser doesn't support mp4 or Ogg Vorbis  
        </video><br /> <br /><a href="watch.php">See More!</a> 

    </div>
</div>
    </div>



<br />

    
</div><br />
</div>
Any idea what I'm doing wrong?

Some of the CSS being used in that particular template file:

Code:
.tmain
{
    border: solid 1px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    border-spacing: 0px;
    width: 100%;
}
.tmenu
{
    border: solid 1px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    border-spacing: 0px;
    width: 175px;
}
.page
{
    background: #FFFFFF;
    color: #000000;
    padding: 0px;
    border-spacing: 20px;
    border: 0px;
    margin-left: auto;
    margin-right: auto;
    width: 1000px;
    font: 10pt sans, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.menuboxmiddle
{
    background: #fff url(../images/headerbackgroundlinks.gif) repeat-x top left;
    border: 1px;
    color: #000;
    padding: 0px;
    height: 15px;
    font: 10pt sans, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    text-align: center;
}
.tcat
{
    background: #0140a8 url(../images/headerbackground.png) repeat-x top left;
    color: #FFFFFF;
    border: 1px #000;
    height: 27px;
    font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    padding: 0px;
}
.alt1, .alt1Active
{
    background: #F5F5FF;
    color: #000000;
    font: 10pt sans, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    
}
Think that's all.

PS: Sorry for the odd questions. I know it's not related to vB.. but I figured.. What better place to ask than a modification community? where most of the people modify templates all day

This worked fine when it was tables and td's etc.

I learn from example and from seeing code and trial and error.. a block of writing would just confuse me. Just so you know

Thanks again!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01204 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete