Link to home
Start Free TrialLog in
Avatar of Angus
AngusFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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