CSS - Indents And Labels
[note: I created a new thread as my example has shifted a bit ... it was 'white-space and checkboxes']
The site http://www.thedancegypsy.com/test/checkBoxes.shtml contains two rows of checkboxes that are *supposed* to (a) indent any wrapped lines, and (b) keep each label with the corresponding checkbox when it does so. The only difference(s) in the *sources* for the two rows a - in the first, the html for each checkBox is written on a separate line, but in the second they are separated by only a space. - box ids were different to allow for html validity check. Each paragraph has the form: <p style = "margin-left: 2in; text-indent: -1in;">...(labels) .. </p> Each label/checkbox has the form: <label for="boxA2"><input type="checkbox" id="boxA2" > Combo A</label> Alas, on my IE brower (5.2 for mac on mac os 10.3), when changing screen sizes * the first row manages to keep each label with the corresponding checkbox -- but fails to indent. * the second row indents (reasonably well) but totally fails to keep the checkboxes with the labels. Any ideas???? Notes: This test started with an attempt to get a similar line of checkboxes to render correctly on a windows IE environment...] All lines are now handwritten, rather than the javascript coded lines I had in my earlier example... separation is now via non-breaking space rather than nowrap spans. If duplicate ids are allowed, the result is the same Similar TutorialsHi Guys, Having a problem on IE7, whereby a UL is still indenting itself, even when the padding and margin are set to zero. Anyone got any suggestions please? Charlie PHP Code: .nav{list-style: none; } .nav ul { padding: 0; margin:0; list-style: none; width:10em; z-index:99; position:relative; overflow:visible; left: 0px; } .nav li { margin:0; position: relative; float:left; width: 12em; text-align: center; color: #FFFFFF; background-color: #006699; border:solid 1px #black; display:block; height:auto; left: 0px; } I want to make a schedule using a single column (unless that really doesn't make sense). There is an image for the date on the left and then i want all of the days events in chronological order on the right of the image. How do I make the text always indented correctly? I know thats confusing. I want it to look like this: http://www.kdpatton.com/cosmopolis/program.htm well the first entries at least. Hi, I have labels that aren't displaying properly in IE. I have used similar code in many parts of the site without problem. Please see this page in IE6. The label contents don't display If I move the labels outside of the content div it does display... Code: <div id="content"> <div id="tempcontent"> <div id='confirmation'> <p><label>Email address:</label>james@got.com<br></p> <p><label>Duration of stay:</label>2 day(s)<br></p> <p><label>Number of guests:</label>4<br></p> <p><label>Arrival date:</label>2007-01-03 00:00:00<br></p> <p><label>Departure date:</label>2007-01-05 00:00:00<br></p> </div> Code: #content { position:relative; background-color:#ffffff; /* dcba72 */ margin-top: -1em; #tempcontent { margin: 4em 4em; } #confirmation { margin: 2em 8em; border: 1px solid #781351; padding: 1em 3em; } label { width: 15em; float: left; text-align: right; margin-right: 0.5em; display: block; color:black; } Does anyone know what's going on? Im trying to write a better office backend. My client does alot of mailings and would like to print an avery 5163(this is not set in stone) form with addresses and send in the mail. Right Now: 1. Generate List. (I wrote the web-app that does this). 2. Copy it from the generated webpage. 3. Pastes it to M$ Word. 4. Adjust any formatting issues. 5. Print the list. What I'd like to do is 1. Generate List. (I wrote the web-app that does this). 2. Print the list.(The page would be formatted with CSS to achieve proper scale and dimension) Does anyone know where I would go to even get started on accomplishing this task? Hi all! I'm wondering for quite a while now... when you put text or a label next to a radiobutton, it never lines up nicely. The (label) text is always a bit lower then the radiobutton. A common solution to this is using tables. But I don't want to use this "hack". I've also tried CSS margins and padding, but these don't seem to help. Is there any elegant way out there to get the text nicely lined up with a radiobutton? Thanks! Hi I'm trying to get the labels of my form to appear above their input boxes and for the input boxes themselves to be side by side (basically a horizontal login form) I've used the label tag in my form after doing some research which looks like: Code: <form> <label for="email">Email</label> <br /> <input type="text" name="email" /> <label for="password">Password</label> <br /> <input type="text" name="password" /> </form> In my CSS I have a label property defined as: Code: label { display:inline-block; } But the outcome is this: Could anyone please shed some light on my problem? Thank you I don't know how to get my radiobuttons, defined as, Code: <div id="options"> <fieldset id="fset"> <legend>Pick car</legend> <label for="id_gm"> <input type="radio" value="gm" id="id_gm">gm</label> <label for="id_vw"> <input type="radio" value="vw" id="id_vw">vw</label> </fieldset> </div> lined up so they a Floated to the left; Each choice (radiobutton and its label) on its own row; With the radiobutton prior to its label; and With the radiobutton and its label aligned horizontally. Would be grateful for your help. This seems so simple, yet my hour of searching has yeilded nothing!! I simply want to make the numbers that appear for each <li> to be clickable. I tried moving the ,a> tags outside the <li>, but that doesn't work. I tried (to no avail) in CSS: li a {list-style-position:inside; } ans: ol li a {list-style-position:inside; } also i added a property that enabled me to click anwhere to the right of the number across the whole page, but I forgot now what that was. In the simplest illustration, I would like to be able to click on the no. 1 from the HTML code below. <ol> <li><a href="#a1" /></li> </ol> Hello there, I Have a radiobutton with a label beside it. It only isn't aligned that nicely. The radiobutton it self is a few pixels heigher then the label it self. Now i have partitialy fixed this by using float: left on the radiobutton(s) itself. But it doesn't work in all browsers. Is there some kind of standard way to fix this? Thx in advance. Hi, I am trying to find a way to print address labels from a web page. The page will either be ASP or ASP.NET. Is it possible to get enough control over the print layout to create consistent labels? The browser will be IE6 and the printer will be printing onto standard address labels that you buy for this sort of thing. If it is possible, could someone please point me in the right direction, I am stumped. Thanks, Matt I'm having some trouble formatting the radio button label text size (as well as the button size). my CSS class is Code: .style_xxs_normal { font-family: Arial; font-size: xx-small; font-weight: 400; } my radio buttons are Code: <tr><td width='100%' align='left'><input type='radio' name='answer' class='style_xxs_normal' value='1'> Answer 1</td></tr> <tr><td width='100%' align='left'><input type='radio' name='answer' class='style_xxs_normal' value='2'> Answer 2</td></tr> Thanks for any suggestions. Hey! I got some issues in IE8 (not checked IE7,6) When I press the "send" button and the form validates, the bottom 2 labels and a checkbox move down about 15px. I think it has to do with my positioning of the calendar icons above and the error messages, havent been able to fix it tho. http://www.borgweb.se/cvh/boka_rum.php is the address. The site is in swedish so bare with me, I think you will understand what I mean once you submit the form. If I then press ctrl-a or select everything with the mouse, the labels go back to their original position. Any ideas of what can sort this is welcome! Thanks! Hi, I am having trouble clearing labels and fields. I have set up my labels to float left and my fields to float left. When i have more than one set of label and field, they do not align underneath each other. Please could someone suggest the best way to clear the label and field so the next row will display correctly? Thanks This will be tough, but I'm confident CSS can handle exactly what I need. I want to print onto labels. Actually, they're return address labels (1.75" by 0.5") to be specific. How do I set up a layout with the following specifications? Quote: Sheet Size: 8.5" x 11" (standard sheet of paper) Dimensions: 1.75" x 0.5" (dimensions of each label) Spacing Between Labels: Vertical Spacing 0", Horizontal Spacing 0.28125", Vertical Pitch 0.5", Horizontal Pitch 2.03125" Margins: Top 0.5", Bottom 0.5", Left 0.33", Right 0.33" Can someone give me a starting point and I'll try to figure it out? I'm lost on it. Thanks |