Centering Map Titles

hallnatec
hallnatec
edited January 2015 in Campaign Portal Building
So I have figured out how to center the titles under my maps, but I would like to change the color and can't seem to figure it out.

Here is the code I am using to center and I feel it should change the color as well but it isn't.

.map-entry .title {color:black; text-align:center;}

"Here":https://the-island-of-misfit-toys.obsidianportal.com/maps is the page. Thanks ahead of time.

Comments

  • Bortas
    Bortas
    Posts: 645
    Hmmmmm.... I tried @.map-entry .title {color:black !important; text-align:center;}@ which doesn't work (the !important just forces an override), which tells me we don't quite have the right tag yet for the text itself. Remember that other thread, where I mentioned I have a terrible time figuring out which tag to use? yeah.... this is what I mean! It also is NOT @.map-name.title {color:black !important; text-align:center;}@

    I'll keep poking, see if I can figure something out before one of our guru's does. Man.... I wish my education included CSS!!

    -bort
    "Morwindl":http://morwindl.obsidianportal.com
  • cgregory
    cgregory
    Posts: 780
    You want

    a.load-map {
    color: black !important;
    }

    Tip:
    If you use firefox and right click on what you want to look at. A screen comes up, choose Inspect Element(Q) and you will easily be able to see what tag you are looking for.

    In this case it should a

    They are among us!

    image

                       XCom: Defiance - Campaign of the Month November 2016

     

     

  • Bortas
    Bortas
    Posts: 645
    See, I think that's jsut where my "poke about knowledge" of CSS really lets me down. I have firefox. and chrome, and I use inspect element all the time. I just read the class I need as "load-map" I would never know that what I really want is the a.

    Oh well... still learning, and thanks for the tip!!

    -bort
    "Morwindl":http://morwindl.obsidianportal.com
  • hallnatec
    hallnatec
    Posts: 9
    Great thanks. I have been using the inspect element of Chrome but didn't realize that what I wanted was the last tag right before the text.

    This is a great tip. Thanks.
Sign In or Register to comment.

April 2024
Season of Strife

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions