Page 1 of 1

How do I center the .galleryheader class?

PostPosted: Sun Apr 18, 2004 10:25 am
by lord_of_the_badgers
Would like to have the .galleryheader class centered... what's the tag guys?

Thaankssss

Re: How do I center the .galleryheader class?

PostPosted: Sun Apr 18, 2004 12:45 pm
by oochappan
[quote=".galleryheader class [/quote]

do you mean class="treepath" ?

PostPosted: Sun Apr 18, 2004 5:32 pm
by lord_of_the_badgers
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.

PostPosted: Sun Apr 18, 2004 5:56 pm
by oochappan
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

PostPosted: Sun Apr 18, 2004 6:30 pm
by lord_of_the_badgers
yeah tried those. i'll have to see if there's anything in the reference files that comes with dreamweaver.

PostPosted: Sun Apr 18, 2004 7:28 pm
by oochappan
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;
}

PostPosted: Mon Apr 19, 2004 5:33 pm
by lord_of_the_badgers
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. :)

PostPosted: Mon Apr 19, 2004 11:49 pm
by oochappan
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

PostPosted: Tue Apr 20, 2004 12:44 pm
by lord_of_the_badgers
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 :)