Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: help with ajax dynamic content load css

  1. #11
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes the border would be as I said (emphasis added):

    However, this style:

    Code:
    border:1px;
    in general won't do anything. If all other p elements already have a border set in your stylesheet, you could use:

    Code:
    border-width:1px;
    Otherwise you need to define style and color as well:

    Code:
    border:1px solid black;
    By that bold line I meant that you would have to already have something like:

    Code:
    p {
    border: 2px solid red;
    }
    If you did, you could define the p.definition border-width and it should inherit the other part of the general p border characteristics. Generally, all three characteristics should be defined when using the border property. This avoids confusion later if you change the inherited values. And, as I said, if there are no inherited values, they must be specified, like:

    Code:
    p.definition {
    border:1px solid black;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  2. #12
    Join Date
    Feb 2008
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi john,
    I have changed the css and still no border.
    I dont have any border specified for other p elements.
    css is now

    p.definition{
    border:2px solid black;
    text-align:left;
    background-color:gray;
    }
    I will try some other style effects.

  3. #13
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I see the border now, perhaps your browser has an old copy of the stylesheet and/or the remote page cached.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #14
    Join Date
    Feb 2008
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi John,
    many thanks.i have the border now,so i guess this tread is closed.
    till the next time!

Bookmarks

Posting Permissions

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