0

Navigation with objects

Hello, how can and I make a normal box to navigate? CSS: HTML: .Box { <div Class=“Box”> Width: 100; </div> Height: 100; Color: black } How can I make the box navigate to a href =“#example”

29th Oct 2018, 11:43 PM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
15 odpowiedzi
+ 1
Put an anchor tag inside the div and give it the href attribute or make the div an anchor tag with the href attribute.
29th Oct 2018, 11:53 PM
TurtleShell
TurtleShell - avatar
+ 1
The "a" tag
29th Oct 2018, 11:55 PM
TurtleShell
TurtleShell - avatar
30th Oct 2018, 12:01 AM
TurtleShell
TurtleShell - avatar
+ 1
The anchor should work as long as it has some text inside it and the menu element is not visible (so when you click it the browser moves to the element).
30th Oct 2018, 12:06 AM
TurtleShell
TurtleShell - avatar
+ 1
Yes you can make a navigation box. It won't work well if all the elements are all visible on the screen though (that's the whole point of the navigation).
30th Oct 2018, 12:09 AM
TurtleShell
TurtleShell - avatar
0
sorry man its like your talking too fast. what is an anchor tag? 😕
29th Oct 2018, 11:55 PM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
0
okay let me try
29th Oct 2018, 11:56 PM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
0
yes
30th Oct 2018, 12:02 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
30th Oct 2018, 12:02 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
0
so i cant make a box to navigate? it has to be letters?
30th Oct 2018, 12:07 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
0
test is hidden at the top
30th Oct 2018, 12:10 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
30th Oct 2018, 12:12 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
0
with text instead of an box
30th Oct 2018, 12:13 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
0
wait wait wait wait. i can make an invinseble button over it. let me try
30th Oct 2018, 12:19 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar
30th Oct 2018, 12:50 AM
Alexander R. Storr-Hansen
Alexander R. Storr-Hansen - avatar