PDA

View Full Version : Resolved simplegallery description text change



partagas
04-01-2010, 10:41 AM
1) Script Title: simplegallery.js

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.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'




#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

Nile
04-01-2010, 03:16 PM
.smallfont
{
font: 11px verdana;text-align: center;
}
p
{
font: 10pt verdana;text-align: center;
}

partagas
04-01-2010, 05:03 PM
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 ...

Nile
04-01-2010, 06:08 PM
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.

partagas
04-01-2010, 07:24 PM
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 !

Nile
04-01-2010, 08:31 PM
#simplegallery1 .gallerydesctext {
padding: 2px 5px;
}

Change to:


[code]
#simplegallery1 .gallerydesctext {
padding: 2px 5px;
text-align:center;
}

partagas
04-01-2010, 08:57 PM
#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

Nile
04-01-2010, 10:12 PM
#simplegallery1 .gallerydesctext {
padding: 2px 5px;
text-align:center;
font-family: verdana;
}

partagas
04-01-2010, 10:23 PM
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

Nile
04-01-2010, 10:23 PM
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"