Board index PBase HTML and Style Sheets How do I center the .galleryheader class?

HTML and Style Sheets

How do I center the .galleryheader class?

Customize your galleries.
lord_of_the_badgers
 
Posts: 440

How do I center the .galleryheader class?

Post Sun Apr 18, 2004 10:25 am


Would like to have the .galleryheader class centered... what's the tag guys?

Thaankssss

oochappan
 
Posts: 131

Re: How do I center the .galleryheader class?

Post Sun Apr 18, 2004 12:45 pm


[quote=".galleryheader class [/quote]

do you mean class="treepath" ?

lord_of_the_badgers
 
Posts: 440


Post Sun Apr 18, 2004 5:32 pm


i mean the bit where you comment on the gallery, it's definitely the galleryheader class as i managed to apply some CSS to it.

oochappan
 
Posts: 131


Post Sun Apr 18, 2004 5:56 pm


lord_of_the_badgers wrote:i mean the bit where you comment ......


try <center>I'm not the world's ...... </center>
or maybe
text-align: center; in the css

lord_of_the_badgers
 
Posts: 440


Post Sun Apr 18, 2004 6:30 pm


yeah tried those. i'll have to see if there's anything in the reference files that comes with dreamweaver.

oochappan
 
Posts: 131


Post Sun Apr 18, 2004 7:28 pm


lord_of_the_badgers wrote:yeah tried those. i'll have to see if there's anything in the reference files that comes with dreamweaver.


ok
here u got it, not so evident
Code: Select all
div.galleryheader {
text-align: center;
position: relative;
right:-25%;
        width: 50%;
        display: block;
        margin-top: 1em;
}

lord_of_the_badgers
 
Posts: 440


Post Mon Apr 19, 2004 5:33 pm


hey nice one mate... thankyou very much (i forgot to look at dreamweaver, but i think it would not have helped)...

good bit of lateral thinking that. :)

oochappan
 
Posts: 131


Post Mon Apr 19, 2004 11:49 pm


lord_of_the_badgers wrote:thinking that........... :)

u can still improve .....
why not fixing ur comment text ? f.i.
Code: Select all
div.galleryheader {
        position: relative;
        right: -30%;
        width: 400px;
        display: block;
        text-align: justify;
        margin-top: 1em;
}

of course fix the h2 then too ..... likewise
test it out .... maybe u can drop it on the spot lining up to the first thumb too ? and with a text-indent: 60%; f.i. u can put thetext anywhere in the h2
Last edited by oochappan on Sun Apr 25, 2004 3:04 am, edited 1 time in total.

lord_of_the_badgers
 
Posts: 440


Post Tue Apr 20, 2004 12:44 pm


i centered the caption text before the galleryheader bit.. i think i'm pretty much there now.
i did also find the function for making the text all caps with initial letter of each word bigger than the rest. looks nice i reckon.

am ok for now.. might fiddle with it again sometime.. thanks for you help though :)


Board index PBase HTML and Style Sheets How do I center the .galleryheader class?

Who is online

Users browsing this forum: ClaudeBot and 1 guest