HELP Web Page Code

Hi,
I am trying to understand CSS or it may be something else.  I used do HTML coding ages ago... and now it obvious has changed.

        <!-- Logo container -->
            <a href="index.html"><div id="logo"><h1 class="logo">An elegant georgian apartment in the heart of Edinburgh New Town.</h1></div></a>
        <div id="tagline">Luxury apartment in Edinburgh New Town</div>

I have the above code and it shows an image on the page.... but no idea where the image gets referenced from or the size etc..

Can you help

Thanks
A
LVL 2
amacfarlAsked:
Who is Participating?
 
Kyle AbrahamsSenior .Net DeveloperCommented:
Check your CSS for a .logo class.  There might be a background-image or something in there.
0
 
F PCommented:
Oooohhhh, please don't use that as valid code anywhere. At no point should you put a <div> tag inside of an anchor <a> tag.

Look in the CSS like Kyle mentioned for any of the following:

tag .class #id { attribute: value; }

Open in new window


So your code could use any number of selectors. I would use the Developer Tools to inspect the element as it's drawn in the DOM to figure out where and what is the applied CSS. It literally could say any of these (background is an example):

div#logo h1.logo { background: blue; }

.logo { background: blue; }

#logo { background: blue; }

div { background: blue; }

h1 { background: blue; }

div, h1 { background: blue; }

Open in new window

... and I could keep going. Have a look at this fun star wars reference for order precedence:

http://www.stuffandnonsense.co.uk/archives/images/specificitywars-05v2.jpg
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.