vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Need a little help with CSS... (https://vborg.vbsupport.ru/showthread.php?t=260470)

HMBeaty 03-16-2011 09:12 PM

Sure...
HTML Code:

<div class="block usmlsablock usmlsashadow">
        <h2 class="blockhead">Title</h2>
        <div class="blockbody">
        <table id="usml_table2" width="100%">
                <tr>
                        <td nowrap="nowrap">
                        <div class="blockrow restore usmlsatext">
                                TEXT 1
                        </div>
                        </td>
                </tr>
                <tr>
                        <td nowrap="nowrap">
                        <div class="blockrow restore usmlsatext">
                                TEXT 2
                        </div>
                        </td>
                </tr>
        </table>
        </div>
</div>


Boofo 03-16-2011 09:53 PM

Okay, and what CSS goes with that?

HMBeaty 03-16-2011 10:01 PM

Erm....that's constantly being changed at the moment lol. Trying to fine tune things :)

--------------- Added [DATE]1300316493[/DATE] at [TIME]1300316493[/TIME] ---------------

EDIT: I'll post an update later tonight or possibly tomorrow

Boofo 03-16-2011 10:16 PM

You can also PM me if that would be easier. I might try to use what you end up with for my events mod on my site, if that is okay. ;)

HMBeaty 03-16-2011 10:17 PM

1 Attachment(s)
Scratch that....I'll go ahead and post what I have so far in terms of CSS and the template....

Template:
HTML Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw pagetitle} - {vb:raw vboptions.bbtitle}</title>
    {vb:cssfile staff_app.css}
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>

<div class="block usmlsa_block usmlsa_shadow">
        <h2 class="blockhead">{vb:rawphrase usml_staffapp_application}</h2>
        <div class="blockbody">
        <table id="memberlist_table" width="100%">
                <tr valign="top">
                        <td colspan="2">
                        <div class="blockrow restore usmlsa_welcome">
                        <p>Welcome {vb:raw bbuserinfo.musername}!</p>
                        <p>{vb:raw vboptions.usml_staffapp_welcome}</p>
                        <p>Thank you!<br />{vb:raw vboptions.bbtitle}</p>
                        </div>
                        </td>
                </tr>
                <tr valign="top">
                        <td nowrap="nowrap" width="50%">
                        <div class="blockrow restore usmlsa_posradio">
                        {vb:phrase usml_staffapp_position}
                        </div>
                        </td>
                        <td nowrap="nowrap" width="50%">
                        <div class="blockrow restore usmlsa_posradio">
<vb:if condition="$vboptions['usml_postitionapplying_mod_onoff'] == '1'">
                        <input type="radio" name="position_applying" value="Moderator" />&nbsp;{vb:phrase usml_staffapp_mod}<br />
</vb:if>
<vb:if condition="$vboptions['usml_postitionapplying_smod_onoff'] == '1'">
                        <input type="radio" name="position_applying" value="Super Moderator" />&nbsp;{vb:phrase usml_staffapp_smod}<br />
</vb:if>
<vb:if condition="$vboptions['usml_postitionapplying_admin_onoff'] == '1'">
                        <input type="radio" name="position_applying" value="Administrator" />&nbsp;{vb:phrase usml_staffapp_admin}
</vb:if>

                        </div>
                        </td>
                </tr>
                <tr valign="top">
                        <td class="blocksubhead" colspan="2">
                        <b>Personal Information</b>
                        </td>
                </tr>
                <tr valign="top">
                        <td nowrap="nowrap" width="50%">
                        <div class="blockrow restore usmlsa_singletext">
                        {vb:phrase usml_staffapp_username}
                        </div>
                        </td>
                        <td nowrap="nowrap" width="50%">
                        <div class="blockrow restore usmlsa_singletext">
                        <input type="text" class="primary textbox" name="username" maxlength="256" value="{vb:raw bbuserinfo.username}" readonly />
                        </div>
                        </td>
                </tr>
        </table>
        </div>
</div>

    {vb:raw footer}
  </body>
</html>

CSS:

Code:

@charset "UTF-8";
/* CSS Document */

.usmlsa_block {
        margin-bottom:1em;
}

.usmlsa_welcome {
        border-bottom:solid 1px {vb:stylevar light_border.borderColor};
        height:105px;
}

.usmlsa_posradio {
        border-bottom:solid 1px {vb:stylevar light_border.borderColor};
        height:50px;
}

.usmlsa_otherradio {
        border-bottom:solid 1px {vb:stylevar light_border.borderColor};
        height:50px;
}

.usmlsa_singletext {
        border-bottom:solid 1px {vb:stylevar light_border.borderColor};
        height:25px;
}

.usmlsa_multitext {
        border-bottom:solid 1px {vb:stylevar light_border.borderColor};
        height:50px;
}

.usmlsa_block .blockbody {
        border-left:{vb:stylevar tabslight_border};
        border-right:{vb:stylevar tabslight_border};
        border-bottom:{vb:stylevar tabslight_border};
}

.usmlsa_shadow {
        -moz-box-shadow: -2px 2px 2px {vb:stylevar forumbits_shadow_color};
        -webkit-box-shadow: -2px 2px 2px {vb:stylevar forumbits_shadow_color};
}

Still a lot of work to be done :)

HMBeaty 03-16-2011 10:56 PM

Ok, any reason why this no longer works in custom templates?
HTML Code:

<div class="smallfont">
Did that change to something different?

--------------- Added [DATE]1300320096[/DATE] at [TIME]1300320096[/TIME] ---------------

Hmm....nevermind....apparently this has to be added to the css as well even for new pages....
Code:

.smallfont {
        font-size: {vb:stylevar small_fontSize};
}


Boofo 03-16-2011 11:22 PM

I'd be interested in it after you get it all tweaked and done. ;)


All times are GMT. The time now is 03:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01110 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete