Matthew Velic wrote: > I have a <span> within a <div> as such: > <div> > <p /> > <p /> > <p><span></span></p> > <p /> > <p /> > </div> > > I just want it to center the small amount of text (2 links, a > previous/next sort of deal for an online portfolio). I've tried using a > few different ways to center it, such as declaring a class/id and > putting text-align: center, I've tried div > span #nav { text-align: > center; }, that same without the id/class... and I just cannot figure it > out.
Test-align:center does not work on spans or other inline elements. You have to use it on a block container like that p, then the p will center all inline content inside. Big John > > Unfortunately, I cannot upload the files at work, as I do not have a > network connection for my laptop. Some random BS with the network here... > > But a copy of css file can be found at http://home.gwu.edu/~mvelic/dccub2 > It hasn't been changed pretty much at all from that version I uploaded > last night. It is called styles.css, if you need that. > > Thanks, and sorry for not being able to make solving this easier. > > Matt > ______________________________________________________________________ > css-discuss [EMAIL PROTECTED] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > -- Perennial student + Impractical joker + CSS junkie = Big John <http://www.positioniseverything.net> __________________________________ Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/