Topic: Side by Side Spans |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Juneau, Alaska |
posted 07-25-2005 22:07
Hi. I'm trying to set up a template that would allow the coder to fit content into two seperate spans, side by side. What I'm getting thus far is a page where the contents in the first span simply go on until they are finished, and then it is followed by the second span. code: <span align="left" style=" position:relative; left: 3px; background:red; width:50px;"> <!-- Lots of example text --> </span> <span align="left" style=" position:relative; right:3px; background:blue; width:50px;"> <!--Lots of example text--> </span>
|
Bipolar (III) Inmate From: Minnesota |
posted 07-25-2005 22:16
how wide is the element that is containing the two spans? If its narrower than 100px then it can't fit them side by side so it pushes the one down where it will fit. Also if the containing element is only 100px wide and the content of one of the spans is wider than 50px it will push the span wider causing it to drop down as well. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-25-2005 22:16
span align="left" style=" |
Maniac (V) Inmate From: raht cheah |
posted 07-25-2005 22:20
yeah like bit said I widened the example to accomodate actual words |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-25-2005 22:20
Actually that doesn't entirely work but it's the theory. |
Maniac (V) Inmate From: under the bed |
posted 07-25-2005 22:31
For starters, get that 'align' out of there. It has no place in your mark up. The 'style' has no business being there in this case either - make a class and define it in your CSS. |
Bipolar (III) Inmate From: Juneau, Alaska |
posted 07-25-2005 23:53
quote:
|