I need to move this, to there - HTML

Soldato
Joined
23 Dec 2010
Posts
3,483
Afternoon,

I'm currently creating my website in HTML and can't seem to move my hyperlinks bar down to where its supposed to be.

b59673e926078002ae8f38755bdf6c07.png


To this.

6226be1db6edd6b95e55e386eec60bf3.png
 
Thats right, put every element in its own HTML, and use iframes to put the page together. Its great, because you only have to change your menu in 1 place to change it everywhere?

*Is he serions? I'm not sure*
 
Doesn't even load :O

HTML has moved a long way since those days of layout tables, <div> is for layout right now.

Code:
<div class="menu">
<a href="#">Example</a>
<a href="#">Example</a>
<a href="#">Example</a>
</div>

then use CSS to style that.
 
Tabular data.
Display: table-cell is rather useful occasionally - for certain things.
Mainly how tables are rendered is the issue, the browser redraws it many many many times until it reaches the end because it doesn't know how big each cell needs to be.
 
Doesn't even load :O

HTML has moved a long way since those days of layout tables, <div> is for layout right now.

Code:
<div class="menu">
<a href="#">Example</a>
<a href="#">Example</a>
<a href="#">Example</a>
</div>

then use CSS to style that.


Or even better

Code:
<ul>
<li><a href="#">Example</a></li>
<li><a href="#">Example</a></li>
<li><a href="#">Example</a></li>
</ul>

then style that. If you're really interested then this is a very enthusiastic book which explains a lot of 'taken for granted' concepts, and also introduces you to the fun of HTML5!

http://www.diveintohtml5.net
 
Back
Top Bottom