html - Can't change the width of table <TD> -


the blue table data entry won't reside width. there new html5 way able achieve feat? row should same width photo above it.

  <div class="template" style="text-align:center">      <table  width="100%" , height="100%" border=0 cellspacing=0 cellpadding=0 align="center">  		<tr>  			<td width='100%' height='100%' bgcolor='#f2f3f4'>  				<div style="text-align: center;">  						<img src ="https://image.ibb.co/i4ykzk/roverlogo.png" alt="roverlogo">  				</div>  			</td>  		</tr>  	  <!-- background photo   -->    	<table width="80%" border="0" cellpadding="0" cellspacing="0" align="center">  	<tr>    	    <td width="997" height="326"           background="https://image.ibb.co/do1hfq/dog3edit.jpg" style="background-          image:url(https://image.ibb.co/do1hfq/dog3edit.jpg); background-repeat:           no-repeat;">    	   <!-- <b>welcome rover! </b> -->  	   <font class="titletext" color="white" align="center" style="width: 800px;  	   font-size: 50px;"><b>welcome rover!</b></font><br><br>   	   <font class="subtitletext" color="white" align="center" style="width:          100px;  	   font-size: 30px;">ready started?</font><br><br><br>  	  	   <a href="#"><img src="https://image.ibb.co/nvbilq/button.png"          alt="button" border="0"></a>  	  	  </td>    	</tr>  	<tr>  	    <td width="80%" bgcolor="#blue" style="width:80%">  	    </td>  	</tr>  	</table>      </table>      </div>

article {    width: 100%;  }    #banner {    background: url("https://image.ibb.co/do1hfq/dog3edit.jpg") no-repeat no-repeat;    padding: 25px 0;  }    h1 {    font-size: 50px;    margin-bottom: 0;  }    h1, p {    color: white;    width: 100%;    text-align: center;  }    p {    font-size: 30px;  }    button {    width: 200px;    background: #00c55c;    border: none;    padding: 12px 24px;    color: white;    font-size: 24px;    border-radius: 6px;    display: block;    margin: 0 auto;    clear: both;  }    #logo {    background: #f2f3f4;  }    #logo img {    display: block;    margin: 0 auto;    clear: both;  }
<article>            <section id="logo">         <img src ="https://image.ibb.co/i4ykzk/roverlogo.png" alt="roverlogo">      </section>	               <section id="banner">                <h1>welcome rover!</h1>        <p>ready started?</p>        <button>search sitters</button>            </section>        </article>

i'd this. no table layout. if has inline, put <style></style> tag above html block.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -