Solved

HTML on page bookmark navigation

Posted on 2007-11-22
3
641 Views
Last Modified: 2013-11-19
Hi,

I know how to make bookmarks in HTML document - <a href='..' name='id_x">text</a>. If I add <body onload="location.href='#id_x'"> then the browser will go to the link with name id_x after the hole webpage is loaded. Everything is OK.

The problem is that the named link appears on the top of the browser window.

Is it possible to force the browser (IE Firefox) to show the names link veticaly centered in the browser window?

Thak you.
0
Comment
Question by:pmarkov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
edenmachine earned 200 total points
ID: 20336281
Those are actually called "Name Anchors" and not "bookmarks".

If you're referring to the browser window "handlebar" at the very top above the browser toolsbars then, no, you cannot center that.  The reason it's showing up there in the first place is that you aren't defining the <title> tag.

<html>
   <head>
      <title>Name of your page</title>
   </head>
   <body>
...
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question