Results 1 to 10 of 10

Thread: simplegallery description text change

  1. #1
    Join Date
    Feb 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default simplegallery description text change

    1) Script Title: simplegallery.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...plegallery.htm

    3) Describe problem:


    Hello, this is my first posting here. Should I have overlooked an existing thread please forgive me.


    I want the description text to be in positioned 'center' and in font ' verdana'


    Code:
    #simplegallery1 .gallerydesctext{ //CSS for description DIV of Example 1 (if defined)
    text-align: center;
    padding: 2px 5px;
    }
    
    .smallfont
    {
    	font: 11px verdana;
    }
    p
    {
    	font: 10pt verdana;
    }
    </style>
    However this is being ignored, description text stays at left with font Times New Roman. What do I have to to to change to ' center' and ' verdana ' ?

    Many thanks !
    partagas
    Last edited by partagas; 04-02-2010 at 01:41 AM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
    .smallfont
    {
    	font: 11px verdana;text-align: center;
    }
    p
    {
    	font: 10pt verdana;text-align: center;
    }
    Jeremy | jfein.net

  3. #3
    Join Date
    Feb 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you nile. Unfortunately is still does not work ...


    <style type="text/css">

    /*Make sure your page contains a valid doctype at the top*/
    #simplegallery1{ //CSS for Simple Gallery Example 1
    position: relative; /*keep this intact*/
    visibility: hidden; /*keep this intact*/
    border: 1px silver;
    }

    #simplegallery1 .gallerydesctext{ //CSS for description DIV of Example 1 (if defined)
    text-align: center;
    padding: 2px 5px;
    }

    .smallfont
    {
    font: 11px verdana;text-align: center;
    }
    p
    {
    font: 10pt verdana;text-align: center;
    }
    </style>

    Text remains to the left and font Times New Roman.
    Something else must be the reason ...

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    When pasting a code, please remember to use [code] tags. That includes [ html ], [ code ], and [ php ].

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    Jeremy | jfein.net

  5. #5
    Join Date
    Feb 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    When pasting a code, please remember to use [code] tags. That includes [ html ], [ code ], and [ php ].

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    Thank you for your patience, Nile !
    Last edited by partagas; 04-02-2010 at 01:49 AM. Reason: Resolved

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
    #simplegallery1 .gallerydesctext {
      padding: 2px 5px;
    }
    Change to:
    [code]
    Code:
    #simplegallery1 .gallerydesctext {
      padding: 2px 5px;
      text-align:center;
    }
    Last edited by Nile; 04-01-2010 at 10:10 PM.
    Jeremy | jfein.net

  7. #7
    Join Date
    Feb 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    [code]
    #simplegallery1 .gallerydesctext {
    padding: 2px 5px;
    }
    [/cpde]
    Change to:
    [code]
    Code:
    #simplegallery1 .gallerydesctext {
      padding: 2px 5px;
      text-align:center;
    }
    Nile, thank you so much for your help ! Text is now in the center.

    Thank you !
    Please allow me one last question, then I am happy and won't bother you any longer:

    How can I change the font of description text into Verdana ? At the moment the text font still seems to be in Times New Roman ...

    Many thanks !

    partagas
    Last edited by partagas; 04-02-2010 at 01:50 AM. Reason: Resolved

  8. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
    #simplegallery1 .gallerydesctext {
      padding: 2px 5px;
      text-align:center;
      font-family: verdana;
    }
    Jeremy | jfein.net

  9. #9
    Join Date
    Feb 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Done ! Many thanks indeed for your assistance, Nile !
    Sorry for having bothered you, I am not that experienced yet.

    Again thank you very much !

    partagas

  10. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    No problem, glad to help.

    It seems your topic is solved... Please set the status to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"
    Jeremy | jfein.net

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
  •