Advertisement

04.17.2008 at 02:31PM PDT, ID: 23332608
[x]
Attachment Details

Easy points - Positioning elements with <DIV> and <SPAN>

Asked by wilq32 in Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), Dynamic HTML (DHTML)

Tags: HTML, CSS, SPAN, DIV, Browser Compliance, IE

I got a simple and fast question. I would like to know how to position empty elements for <SPAN> with this class:

.square
            {
                  width:10px;
                  height:10px;
                  background-color:red;
            }

.line
            {
                  width:300px;
                  height:10px;
            }
The <SPAN> (with class .square) would be positioned one near another, and <DIV> (with class .line) would contain all of them (in a line). At the end I would like to have something like that:

<div> <span></span><span></span>..... </div>
<div> <span></span><span></span>..... </div>
....
<div> <span></span><span></span>..... </div>


I asking for a solution that will work on IE 6.0, 7.0, FF, opera and Safari. I get my own solution but I got problems with showing in IE - it just uses "float:left" in class that i provided.Start Free Trial
[+][-]04.17.2008 at 03:59PM PDT, ID: 21382145

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 04:26PM PDT, ID: 21382280

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 04:50PM PDT, ID: 21382356

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), Dynamic HTML (DHTML)
Tags: HTML, CSS, SPAN, DIV, Browser Compliance, IE
Sign Up Now!
Solution Provided By: mpn_1983
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.17.2008 at 05:00PM PDT, ID: 21382384

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 11:40PM PDT, ID: 21383675

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906