Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 297145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:36:47+00:00 2026-05-12T06:36:47+00:00

This is my code for a nice looking form: <dl> <dt class=’breed’><label for=nwberichten>Fieldname</label></dt> <dd>

  • 0

This is my code for a nice looking form:

<dl>
    <dt class='breed'><label for="nwberichten">Fieldname</label></dt>
    <dd>
        Input
    </dd>
    <div class='clear'>&nbsp;</div>
</dl>
<dl class='oe'>
        <dt class='breed'><label for="nwberichten">Fieldname</label></dt>
        <dd>
            Input
        </dd>
        <div class='clear'>&nbsp;</div>
    </dl>

With the folowing CSS

dl {margin-top:0px;}
dt {float:left; text-align:right; width:120px; line-height:25px; margin:0 10px 10px 0;}
dd {float:left; width:400px; line-height:25px; margin:0 0 10px 0;}
DL  {
    border-bottom:1px dashed #aaa;
    margin:0px;
    line-height:20px;
    padding-top:6px;;
}

DL DD   {
    line-height:20px;
    background:transparent;
}
DT  {
    line-height:20px;
    background:transparent;
}
DL.oe   {
    background:#efe;
}

In webkit (eg Safari) the Uneven row, the one with the BG color #efe looks perfect. The bgcolor goes from one dashed border to the other.
In IE the color is only 10px (or so) high and the looks are messed up.

How is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:36:47+00:00Added an answer on May 12, 2026 at 6:36 am

    I’ll briefly explain what I did and why. The code is at the end.

    The first mistake is using clearing divs inside the dl element. A dl can only contain dds and dts. To achieve clearing you can set overflow to hidden for your dls. It achieves the same effect. This is also probably why your page looks a bit messed up in IE (because of the divs in the dls)

    As for the rest, I just cleaned up your CSS a bit.

    HTML:

    <dl>
        <dt class="breed"><label for="nwberichten">Fieldname</label></dt>
        <dd>
            Input
        </dd>
    </dl>
    <dl class="oe">
        <dt class="breed"><label for="nwberichten">Fieldname</label></dt>
        <dd>
            Input
        </dd>
    </dl>
    

    CSS:

    dl { margin:0; padding-top:6px; overflow:hidden; border-bottom:1px dashed #aaa; }
    dl.oe { background:#efe; }
    dt, dd { float:left; line-height:25px; background:transparent; }
    dt { text-align:right; width:120px; margin:0 10px 10px 0;}
    dd { width:400px; margin:0 0 10px 0;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

library(ggplot2) This code produces a nice looking plot: qplot(cty, hwy, data = mpg, colour
I have code like this: <div class=ui-widget> <ul style=list-style-type: none; padding-left: 0; id=menuList> <li>
I came across this really nice looking Scala code while researching XMPP for a
I just came a cross this nice code that makes this scatter matrix plot:
At the moment, I have this DIV with a registration form centered over the
I am looking for a nice quick live search/filter. Anybody use this? http://rikrikrik.com/jquery/quicksearch/#usage Also
I'm just trying to code a nice looking physics game. The ball collision looks
I'm trying to make a nice-looking CSS menu, for this website . (The domain
I am blind, and I have trouble making nice looking guis. This really frustrates
Context The following code produces a nice looking Hello World graphics.drawString(Hello World, 30, 30);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.