I am using Twitter Bootstrap for a project.
I have a widget type list-group
, which is a list of elements that are used for navigation.
For some reason I can’t make those links to work. Although the correct link appears when hovering, they don’t take me there.
I created a fiddle to ilustrate the problem.
Can anyone help?
Regards.
4
Answers
Never put http protocols in the href for many reasons, one of which the protocol might be the wrong one ! (http vs https).
As for the internal link it is working properly in the JSfiddle once you actually create an element with that id.
Plus the list group should be in a LIST not a bunch of divs
Have a look at Bootstrap’s documentation for list-group. When I put your links into a
UL
, things seem to work:When you specify http in the link it will not work in an https site.
I checked the internal link and it worked when yo use your anchor as an ID
And the external link worked when I added:
Which opens the link in a new tab which is usually better as your website will keep a presence in the users browser