Click here to Skip to main content
15,891,828 members
Home / Discussions / Web Development
   

Web Development

 
GeneralImage/text Alignment Pin
mtone10-Sep-04 7:09
mtone10-Sep-04 7:09 
GeneralTextbox Cursors Pin
Anonymous10-Sep-04 7:01
Anonymous10-Sep-04 7:01 
GeneralRe: Textbox Cursors Pin
alex.barylski12-Sep-04 21:56
alex.barylski12-Sep-04 21:56 
QuestionHow to create Project for JScript ? Pin
vgrigor110-Sep-04 5:00
vgrigor110-Sep-04 5:00 
GeneralServer.MapPath functionality in PHP 4.0 Pin
Hesham Amin10-Sep-04 4:27
Hesham Amin10-Sep-04 4:27 
GeneralRe: Server.MapPath functionality in PHP 4.0 Pin
alex.barylski12-Sep-04 21:44
alex.barylski12-Sep-04 21:44 
GeneralRe: Server.MapPath functionality in PHP 4.0 Pin
Hesham Amin13-Sep-04 6:29
Hesham Amin13-Sep-04 6:29 
GeneralCSS DL/DT/DT Question Pin
Glenn E. Lanier II10-Sep-04 3:57
Glenn E. Lanier II10-Sep-04 3:57 
I hope this is the correct CP place to ask a CSS question -- apologies if not.

I am trying to only use TABLEs for true data presentaions, not for layout. Therefore, when I had to create a FORM that requests information (Name, Address, etc.) I looked around and thought a definition list might be the thing to use. The code below works great in Netscape (although I'm not sure why the DD section starts inside the DT section (see borders -- only for troubleshooting)) but looks not so good in IE. Actually, the DD section that contains only a text input field is the only one that doesn't line up.

Any help would be appreciated.

###---- Begin Code Sample ----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Test DD Style</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<STYLE TYPE="TEXT/CSS">
DL
{
clear:both;
width:100%;
margin:10px 0px;
}

DT
{
display:inline;
float:left;
width:100px;
height:21px;
border:1px solid #00f;
}

DD
{
text-align:left;
border:1px solid #f00;
display:block;
padding-left:0px;
height:21px;
left:40px;
}

P
{
background-color:c0c0c0;
font-size:14px;
width:100%;
border:thin dashed #000;
padding:10px;
background-color:#CCCCCC;
}

</STYLE>
</HEAD>
<BODY>
<P>DL Example</P>
<DL>
<DT>Plain Text:</DT><DD>Lines up fine.</DD>

<DT>Text and Input:</DT><DD>Text <INPUT TYPE="TEXT"></DD>
<DT>Just Input:</DT><DD><INPUT TYPE="TEXT"></DD>
</DL>
</BODY>
</HTML>
###----- End Code Sample -----
GeneralRe: CSS DL/DT/DT Question Pin
Paul Watson10-Sep-04 4:46
sitebuilderPaul Watson10-Sep-04 4:46 
GeneralRe: CSS DL/DT/DT Question Pin
Glenn E. Lanier II10-Sep-04 5:18
Glenn E. Lanier II10-Sep-04 5:18 
GeneralRe: CSS DL/DT/DT Question Pin
Glenn E. Lanier II10-Sep-04 10:37
Glenn E. Lanier II10-Sep-04 10:37 
GeneralRestricting file copy on network Pin
Zee_Zee9-Sep-04 20:38
Zee_Zee9-Sep-04 20:38 
GeneralRe: Restricting file copy on network Pin
Steven Campbell10-Sep-04 4:13
Steven Campbell10-Sep-04 4:13 
GeneralWebPage in Google Pin
Pothirajan C9-Sep-04 4:24
Pothirajan C9-Sep-04 4:24 
GeneralRe: WebPage in Google Pin
Jon Cooperonie9-Sep-04 6:58
Jon Cooperonie9-Sep-04 6:58 
GeneralRe: WebPage in Google Pin
Rocky Moore9-Sep-04 7:59
Rocky Moore9-Sep-04 7:59 
GeneralRe: WebPage in Google Pin
alex.barylski12-Sep-04 21:53
alex.barylski12-Sep-04 21:53 
GeneralRe: WebPage in Google Pin
Arsalan Malik12-Sep-04 23:31
Arsalan Malik12-Sep-04 23:31 
Questionhow to save to hd a image from sqlserver Pin
Anonymous9-Sep-04 3:57
Anonymous9-Sep-04 3:57 
AnswerRe: how to save to hd a image from sqlserver Pin
David Salter9-Sep-04 22:51
David Salter9-Sep-04 22:51 
Questionhow to save to hd a image form sqlserver Pin
Anonymous9-Sep-04 3:56
Anonymous9-Sep-04 3:56 
GeneralDrop Down Menu Pin
njppp9-Sep-04 3:09
njppp9-Sep-04 3:09 
Generalweblogic Pin
Mikel Fayad9-Sep-04 1:03
Mikel Fayad9-Sep-04 1:03 
GeneralMobile apps and web integration Pin
Jon Cooperonie9-Sep-04 0:10
Jon Cooperonie9-Sep-04 0:10 
QuestionHow to email zip files in Html Pin
shlim888-Sep-04 16:22
shlim888-Sep-04 16:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.