Jump to content

Display Bullet Points the Same (IE & FF)


Dysan

Recommended Posts

Sorry, forgot to add code. :)

 

Save the following code and the image found at the URL, and place it them both in the same folder. I'm trying to line up the HTML bullet points, with the ones found on the image. Problem is, it messes up on another browsers upon doing this. Why is this?

 

http://www.freewebs.com/ticstacs/Bullets.bmp

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body
{
  MARGIN: 18px;
  PADDING: 0px;
}

#container
{
  WIDTH: 727px;
  HEIGHT: 409px;
  BORDER: 4px solid rgb(0,0,0);
  BACKGROUND: url(Bullets.bmp) no-repeat;
}

ul
{
  TOP: 130px;
  LEFT: 16px;
  POSITION: relative;
  FONT-FAMILY: arial;
  FONT-SIZE: 75%;
}
</style>
</head>

<body>
<div id="container">
  <ul id="bullets">
    <li>Bullet Point One</li>
    <li>Bullet Point Two</li>
    <li>Bullet Point Three</li>
    <li>Bullet Point Four</li>
  </ul>
</div>
</body>
</html>

Link to comment
Share on other sites

Trying to get it pixel for pixel perfect in every browser is a wasted cause. In messing with it, here is one that is close:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body
{
  MARGIN: 18px;
  PADDING: 0px;
}

#container
{
  WIDTH: 727px;
  HEIGHT: 409px;
  BORDER: 4px solid rgb(0,0,0);
  BACKGROUND: url(Bullets.bmp) no-repeat;
}

ul
{
  TOP: 117px !important;
  LEFT: 18px !important;
  POSITION: relative;
  FONT-FAMILY: arial;
  FONT-SIZE: 9pt;
  line-height: 13pt;
  color: red;
  TOP: 128px;
  LEFT: 20px;
}
</style>
</head>

<body>
<div id="container">
  <ul id="bullets">
    <li>Bullet Point One</li>
    <li>Bullet Point Two</li>
    <li>Bullet Point Three</li>
    <li>Bullet Point Four</li>
  </ul>
</div>
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.