Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how to override a link style?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #45464
    praniski
    Member

    hi, im sure this topic has already been created, but i tried to look for something similar and couldn’t find, so my apologies in advance.

    the problem is that on my index page i have some inline blocks on my menu links. and all my css is in a separate file (mainstyles.css)

    so on my location.html page i have an image link to google maps, and the link is inheriting the inline block as the one from the menu. leaving me with a block around my image.

    i read some posts about overriding styles but am still somewhat confused. i hope i explained it clear enough. thanks.

    #138416
    daffy58
    Participant

    can you give us a link to your website or make a sample code?

    #138533
    bcintegrity1
    Participant

    Can you give the URL?

    #138539
    Alen
    Participant

    Or create a Pen: http://codepen.io/pen/ with your code.

    Over-ridding styles is easy, last style declared will take affect. So if you have:

    .box { color:red; }
    .box { color: green; } /* this is the style that overrides the top .box */

    #138546
    praniski
    Member

    i’m still having trouble understanding. here is the pen.

    http://cdpn.io/BJolm

    #138549
    Alen
    Participant

    You have a lot of HTML syntax issues.

    #138672
    praniski
    Member

    which means what?

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.