Spreading div content evenly without using tables

Posted on 2007-10-18
Last Modified: 2011-02-09

I want the days of the week to be spread evenly in 125px cells without using tables.

This works in IE6 if I do NOT include a dtd but it does not work in any browser with a valid dtd.  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
div {
width: 125px;
text-align: center;
display: inline;


Question by:hankknight
    LVL 8

    Accepted Solution

    The official form is:

    <STYLE TYPE="text/css">
    div {
    width: 125px;
    text-align: center;
    display: inline;
    LVL 16

    Author Comment

    Thanks, that might validate better but it does not solve the problem.

    Now all the words run togeather.  I want them each in a 125px cell.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now