Sym Paradise
The Boxes Paradise
Home
  • My Menu
    • Log In
  • Contents
    • Discussion
    • Help
      • User Help
        • Installation
        • Others
      • Developer Help
        • Drupal
        • Others
      • Box Request
  • Library
    • Main Library
    • Search Boxes
  • Handbooks
    • User Handbook
    • Developer Handbook
    • Using This Site

Can I customize the font or color, of the title and the contents inside the Box?

janice_ann
10th Jul 2009, 09:10:51 PM
Tags:
  • Others

 Hi,

Am I able to customize the font and/or color of the title and the contents inside a Box? If so, how do I go about doing it?

Thanks in advance. Cheerios.

  • Login or register to post comments
  • 1903 reads
Share

Yes, and here's how

10th Jul 2009, 09:36:27 PM

The default way to build a Box is this:

<script type="text/javascript" src="http://theboxes.paradise.sg/sites/theboxes.paradise.sg/
  files/Box/75/files/theboxesparadise_75.js"></script>
<script type="text/javascript"> tbp_75_getHeader(); </script>
<script type="text/javascript"> tbp_75_getStartTitle(); </script>
Title here
<script type="text/javascript"> tbp_75_getMid(); </script>
Content here
<script type="text/javascript"> tbp_75_getEnd(); </script>

 

 

If you wish to have your own css style for Title, you can add wrap your Title with the appropriate html and css codings, for example, like this:

<script type="text/javascript" src="http://theboxes.paradise.sg/sites/theboxes.paradise.sg/
  files/Box/75/files/theboxesparadise_75.js"></script>
<script type="text/javascript"> tbp_75_getHeader(); </script>
<script type="text/javascript"> tbp_75_getStartTitle(); </script>
  <div style="font-size:24px; font-weight:normal; color:#FF0000;">

    Title here

  </div>
<script type="text/javascript"> tbp_75_getMid(); </script>
  <div class="yourclass" style="text-align: center; font-family:verdana;">
    Content here

  </div>
<script type="text/javascript"> tbp_75_getEnd(); </script>

 

A <div> layer is added above to illustrate how the contents can be changed as well. Inline styles are used here, but of course, if you wish to define your css styles in an external style sheet (which is what is usually recommended for best practice), you can give your <div> a class here.

Basically, you do as per normal how you have been marking up your text. Every Box in TBP gives you a default Title and Content style. You can always overwrite it with your own's.

TBP
  • Login or register to post comments

Box Usage Statistics

Box Countersort icon
TBP 16 150514
TBP 50 120877
TBP 66 99802
TBP 36 93570
TBP 83 55350

Popular Boxes

  • TBP 72 (5,128)
  • TBP 66 (4,818)
  • TBP 3 (3,717)
  • TBP 71 (3,558)
  • TBP 30 (3,542)

Recent Box Requests

  • Blue response box
  • slightly embossed box that can be color filled to reqs
  • Panels 3 - Nice normal box
  • 3D Box, Bevel, Aqua-like

Recent Developer Help Posts

  • I have been unsuccessfully trying to create my client's design of a highly stylized box in Drupal 6 using Panels 3.

Recent User Help Posts

  • TBP for nice-menus?
  • Page load time
  • Where to put table when creating 3 boxes
  • print box for each content posted
  • $idstr empty?
  • Box Sizes
  • Can't find Javascript code on download
  • Panels 3
  • Can I customize the font or color, of the title and the contents inside the Box?
  • How can I embed a TBP Box on my web page?

User login

  • Create new account
  • Request new password
Copyright © 2009 Sym Paradise. All rights reserved. Terms of Use | Copyright Information