html - Trying to do The Guardian newspaper for practise. My link called "here" isn't working. I've tried various debugging and can't work it out -


sorry i'm not sure how present everyone. i'm being asked more detail, not sure detail needed. link within div/class "here" won't work. i'm impersonating guardian newspaper layout practise. sorry if tedious experienced.

i've tried debugging no success , changed links etc

body {    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;    display: grid;    height: 100vh;    font-family: arial;    margin: 0;    border: 0;  }    .header {    background: linear-gradient(midnightblue, blue);    color: white;    grid-column-start: 1;    grid-column-end: 11;    grid-row-start: 1;    grid-row-end: 3;    font-family: arial;    font-size: 4em;    z-index: 1;    line-height: 2em;    padding: 10px;    text-shadow: 2px 3px midnightblue;  }    a:link {    text-decoration: none;    color: white;  }    a:visited {    color: white;  }    a:hover {    color: yellow;  }    .latest {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 1;    grid-column-end: 2;    text-align: center;    line-height: 3.5em;    color: white;    text-decoration: none;  }    .latest:hover {    background-color: rgb(0, 0, 255);  }    .aberdeen {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 2;    grid-column-end: 3;    text-align: center;    line-height: 3.5em;    color: white;  }    .aberdeen:hover {    background-color: rgb(0, 0, 255);  }    .celtic {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 3;    grid-column-end: 4;    text-align: center;    line-height: 3.5em;    color: white;  }    .celtic:hover {    background-color: rgb(0, 0, 255);  }    .dundee {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 4;    grid-column-end: 5;    text-align: center;    line-height: 3.5em;    color: white;  }    .dundee:hover {    background-color: rgb(0, 0, 255);  }    .hibs {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 5;    grid-column-end: 6;    text-align: center;    line-height: 3.5em;    color: white;  }    .hibs:hover {    background-color: rgb(0, 0, 255);  }    .hearts {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 6;    grid-column-end: 7;    text-align: center;    line-height: 3.5em;    color: white;  }    .hearts:hover {    background-color: rgb(0, 0, 255);  }    .rangers {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 7;    grid-column-end: 8;    text-align: center;    line-height: 3.5em;    color: white;  }    .rangers:hover {    background-color: rgb(0, 0, 255);  }    .sj {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 8;    grid-column-end: 9;    text-align: center;    line-height: 3.5em;    color: white;  }    .sj:hover {    background-color: rgb(0, 0, 255);  }    .motherwell {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 9;    grid-column-end: 10;    text-align: center;    line-height: 3.5em;    color: white;  }    .motherwell:hover {    background-color: rgb(0, 0, 255);  }    .rosscounty {    background-color: rgb(0, 0, 100);    grid-row-start: 3;    grid-row-end: 4;    grid-column-start: 10;    grid-column-end: 11;    text-align: center;    line-height: 3.5em;    color: white;  }    .rosscounty:hover {    background-color: rgb(0, 0, 255);  }    .mainstory {    background-color: rgb(222, 222, 222);    grid-column-start: 1;    grid-column-end: 6;    grid-row-start: 4;    grid-row-end: 8;    overflow: auto;    padding: 1em;    border: 3px solid white;  }    img {    grid-column-start: 6;    grid-column-end: 10;    grid-row-start: 4;    grid-row-end: 8;    width: 100%;    height: 90%;    padding: 1em;    float: right;    padding: 10px 10px 10px 10px;    border-left: 3px solid white;  }    span {    grid-row-start: 4;    grid-row-end: 8;    grid-column-start: 1;    grid-column-end: 3;  }    .here {    grid-row-start: 4;    grid-row-end: 8;    grid-column-start: 1;    grid-column-end: 11;    z-index: 1;  }    .rightimg {    background-color: rgb(222, 222, 222);    grid-column-start: 6;    grid-column-end: 11;    grid-row-start: 4;    grid-row-end: 8;    overflow: auto;    padding: 1em;  }    .hearts {    background-color: rgb(222, 222, 222);    grid-row-start: 8;    grid-row-end: 11;    grid-column-start: 1;    grid-column-end: 4;    padding: 1em;  }    .bb {    grid-row-start: 8;    grid-row-end: 11;    grid-column-start: 4;    grid-column-end: 6;  }    .sevco {    background-color: rgb(222, 222, 222);    grid-row-start: 8;    grid-row-end: 11;    grid-column-start: 6;    grid-column-end: 9;    border-top: 1px solid white;    padding: 15px;  }    .right {    background-color: (222, 222, 222);  }    .footer {    background-color: (222, 222, 222);  }
<meta name="viewport" content="width=device-width, initial-scale=1.0">  <title>the daily truth</title>  <div class="header">    daily truth  </div>    <div class="latest">    <a href="http://www.scotsman.com/" target="_blank">latest</a></div>  <div class="aberdeen">aberdeen</div>  <div class="celtic">celtic</div>  <div class="dundee">dundee</div>  <div class="hibs">hibs</div>  <div class="hearts">hearts</div>  <div class="rangers">rangers</div>  <div class="sj">st j</div>  <div class="motherwell">motherwell</div>  <div class="rosscounty">ross county</div>    <div class="mainstory">    <h1>old firm losing plot</h1>    <span>lorem ipsum dolor sit amet, consectetur adipiscing elit. integer nec odio.  					lorem ipsum dolor sit amet, consectetur adipiscing elit. integer nec odio.   					praesent mauris massa. vestibulum lacinia arcu eget nulla. class aptent taciti   				</span>    </div>  <div class="rightimg">    <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:and9gcqhclnfh72chmikijzkt_d9oh5islspjprb69yprp4ktefciy6p">  </div>    <div class="here">    <a href="http://www.scotsman.com/"></a>  </div>    <div class="hearts">    <h1>heart of gold</h1>    <h4>levein gives away money</h4>    hearts director of football craig levein today made dreams come true 100 hearts fans when gave away £1000 each supporter, totalling million pound donation.  </div>    <div class="bb">    <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:and9gcsqsicfqjgwi4istgd3drtsvaao-siuk49yfmtgfcrwtnczqwpjcg">  </div>    <div class="sevco">    <h1>rangers go bust</h1>    lorem ipsum dolor sit amet, consectetur adipiscing elit. integer nec odio. praesent libero. sed cursus ante dapibus diam. sed nisi. nulla quis sem @ nibh elementum imperdiet. duis sagittis ipsum. praesent mauris. fusce nec tellus sed augue semper porta.    mauris massa. vestibulum lacinia arcu eget nulla. class aptent taciti sociosq.    </div>

you have empty div height 0, write there or put, in debugger see height 0, problem!

 <div class="here">   <a href="http://www.scotsman.com/">my link</a>  </div> 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -