Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Adding a background to text entered via Define Pages Editor

    First of all, I’m really sorry if I’ve placed this is the wrong place.

    Ok.. I'm not really sure how I can explain this properly, so please tell me if you would like me to explain it in a different manner.

    I guess what I want to be able to do is add a background to the data entered through the define pages editor. For example, I want the main page to first show a swf banner (which I've already done). This already has a red border with a curved background. Then I have the welcome message, which I want to add a background to (a rectangle with curved edges)

    I think it may be possible to use div's. Since I may choose to change the length of the content, I want the size of the background to change. I thought I could split the image up into three parts. The first would have the top part of the image with the top two curved corners, the next div will be placed below with a background on repeat, and the last will have an image with the bottom two corners.

    It’s rather long winded and tedious, but I was curious if someone could explain how exactly I would go about coding this.

    I’ve tried:


    HTML Code:
    In the define pages editor:
    <div class="MainText">text</div>
    
    and in the css styleshet I have:
    .divMainText { background-color: transparent;background-image: url("../images/Main/Text.gif");background-repeat:repeat-x; }

    And:

    HTML Code:
    In the define pages editor:
    <div id =”MainText”> </div>
    
    And then in the css I have
    #Main Text {
    Background-colour: transparent
    Background-image: url(.../images/Main/Text.gif)
    Background-repeat: repeat-x
    }
    But both don’t seem to work

    Any help would be appreciated.
    Last edited by Edessa; 3 Jan 2010 at 11:18 PM. Reason: adding extra details

 

 

Similar Threads

  1. Plain Text editor munging code in define pages editor
    By TecBrat in forum Customization from the Admin
    Replies: 2
    Last Post: 24 Feb 2013, 12:19 PM
  2. Define Pages Editor has only text editor no more html
    By faynart in forum General Questions
    Replies: 4
    Last Post: 13 Dec 2011, 08:03 PM
  3. Adding Javascript via the define pages editor
    By old_guy in forum General Questions
    Replies: 1
    Last Post: 12 Jul 2010, 08:11 PM
  4. font size of text entered via the HTML editor...
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Dec 2008, 05:01 PM
  5. Cannot edit via Define Pages Editor
    By Nellie in forum Basic Configuration
    Replies: 1
    Last Post: 15 May 2006, 07:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg