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>

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.