Using Div instead of bindings

On my website www.funpunks.com in the upper left corner of the page you will see navigation. I did this using a fixed sized div with background images and using javascript to redirect "window.location = ' http://www.funpunks.com/ '" etc.

But what about users who have javascript disabled, etc.? I think I need to use anchor tags.

I need these anchor tags to display as a block, and I need them to have a background image. Also, each individual link should have its own height / width and image hover.

Can this be done using anchor labels instead of divs?

thank

+1
source share
3

, CSS?

a.some-class { display:block; }
+8

<a> . . = "display: block" , , .. , : http://krystalware.com/Products/SlickUpload/. .

+3

A tag can have a height / width set via CSS, like anything else.

+1
source

Source: https://habr.com/ru/post/1792360/


All Articles