div in div position
am 06.08.2007 11:41:36 von tarscher
hi all,
This question is probably already answered a zillion times but I
cannot find an answer to my question.
I have a div in a div
Is it possible to position the divs that the text from div 2 is next
to the text of div 1?
I get
DIV1 text
DIV 2 text
but want
DIV1 textDIV 2 text
Many thanks
Stijn
Re: div in div position
am 06.08.2007 14:06:41 von Neredbojias
Well bust mah britches and call me cheeky, on Mon, 06 Aug 2007 09:41:36 GMT
Tarscher scribed:
> hi all,
>
> This question is probably already answered a zillion times but I
> cannot find an answer to my question.
>
> I have a div in a div
>
> DIV1 text
>
> DIV 2 Text
>
>
>
> Is it possible to position the divs that the text from div 2 is next
> to the text of div 1?
>
> I get
> DIV1 text
> DIV 2 text
>
> but want
> DIV1 textDIV 2 text
>
> Many thanks
> Stijn
Use floats.
--
Neredbojias
Half lies are worth twice as much as whole lies.
Re: div in div position
am 06.08.2007 14:19:27 von lws4art
Neredbojias wrote:
> Well bust mah britches and call me cheeky, on Mon, 06 Aug 2007 09:41:36 GMT
> Tarscher scribed:
>
>> hi all,
>>
>> This question is probably already answered a zillion times but I
>> cannot find an answer to my question.
>>
>> I have a div in a div
>>
>> DIV1 text
>>
>> DIV 2 Text
>>
>>
>>
>> Is it possible to position the divs that the text from div 2 is next
>> to the text of div 1?
>>
>> I get
>> DIV1 text
>> DIV 2 text
>>
>> but want
>> DIV1 textDIV 2 text
>>
>> Many thanks
>> Stijn
>
> Use floats.
>
Or don't use DIV use a SPAN. Depends on what you are trying to do. An
example URL of the real page might help.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: div in div position
am 06.08.2007 15:02:36 von tarscher
On 6 aug, 14:19, "Jonathan N. Little" wrote:
> Neredbojias wrote:
> > Well bust mah britches and call me cheeky, on Mon, 06 Aug 2007 09:41:36 GMT
> > Tarscher scribed:
>
> >> hi all,
>
> >> This question is probably already answered a zillion times but I
> >> cannot find an answer to my question.
>
> >> I have a div in a div
> >>
> >> DIV1 text
> >>
> >> DIV 2 Text
> >>
> >>
>
> >> Is it possible to position the divs that the text from div 2 is next
> >> to the text of div 1?
>
> >> I get
> >> DIV1 text
> >> DIV 2 text
>
> >> but want
> >> DIV1 textDIV 2 text
>
> >> Many thanks
> >> Stijn
>
> > Use floats.
>
> Or don't use DIV use a SPAN. Depends on what you are trying to do. An
> example URL of the real page might help.
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
I've made a mockup of what and why I want to do achieve.You can find
it here: http://www.flickr.com/photos/11036025@N03/1027802383/
I hope this clarifies things.
Regards,
Stijn
Re: div in div position
am 06.08.2007 16:31:33 von lws4art
Tarscher wrote:
> On 6 aug, 14:19, "Jonathan N. Little" wrote:
>> Neredbojias wrote:
>>> Well bust mah britches and call me cheeky, on Mon, 06 Aug 2007 09:41:36 GMT
>>> Tarscher scribed:
>>>> hi all,
>>>> This question is probably already answered a zillion times but I
>>>> cannot find an answer to my question.
>>>> I have a div in a div
>>>>
>>>> DIV1 text
>>>>
>>>> DIV 2 Text
>>>>
>>>>
>>>> Is it possible to position the divs that the text from div 2 is next
>>>> to the text of div 1?
>>>> I get
>>>> DIV1 text
>>>> DIV 2 text
>>>> but want
>>>> DIV1 textDIV 2 text
>>>> Many thanks
>>>> Stijn
>>> Use floats.
>> Or don't use DIV use a SPAN. Depends on what you are trying to do. An
>> example URL of the real page might help.
>>
> I've made a mockup of what and why I want to do achieve.You can find
> it here: http://www.flickr.com/photos/11036025@N03/1027802383/
>
> I hope this clarifies things.
Clear as mud. An example page of HTML of what you are trying would be
preferable.
1) "DIV 2 should start where text of DIV 1 stops" Do you mean DIV 1's
line of text should define the left position of DIV 2? Or is DIV 1 to
have a static width?
2) are both DIVs dims to be defined by the contents or do you have
dimensions for both?
3) Are they to have the same height?
"http://www.w3.org/TR/html4/strict.dtd">
Who knows!
DIV 1 text
(but as you can see we cannot advise unless we have a clearer idea of
what you really want to accomplish)
DIV 2 Text
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: div in div position
am 07.08.2007 09:17:05 von tarscher
On 6 aug, 16:31, "Jonathan N. Little" wrote:
> Tarscherwrote:
> > On 6 aug, 14:19, "Jonathan N. Little" wrote:
> >> Neredbojias wrote:
> >>> Well bust mah britches and call me cheeky, on Mon, 06 Aug 2007 09:41:36 GMT
> >>>Tarscherscribed:
> >>>> hi all,
> >>>> This question is probably already answered a zillion times but I
> >>>> cannot find an answer to my question.
> >>>> I have a div in a div
> >>>>
> >>>> DIV1 text
> >>>>
> >>>> DIV 2 Text
> >>>>
> >>>>
> >>>> Is it possible to position the divs that the text from div 2 is next
> >>>> to the text of div 1?
> >>>> I get
> >>>> DIV1 text
> >>>> DIV 2 text
> >>>> but want
> >>>> DIV1 textDIV 2 text
> >>>> Many thanks
> >>>> Stijn
> >>> Use floats.
> >> Or don't use DIV use a SPAN. Depends on what you are trying to do. An
> >> example URL of the real page might help.
>
>
>
> > I've made a mockup of what and why I want to do achieve.You can find
> > it here:http://www.flickr.com/photos/11036025@N03/1027802383/
>
> > I hope this clarifies things.
>
> Clear as mud. An example page of HTML of what you are trying would be
> preferable.
>
> 1) "DIV 2 should start where text of DIV 1 stops" Do you mean DIV 1's
> line of text should define the left position of DIV 2? Or is DIV 1 to
> have a static width?
>
> 2) are both DIVs dims to be defined by the contents or do you have
> dimensions for both?
>
> 3) Are they to have the same height?
>
>
> "http://www.w3.org/TR/html4/strict.dtd">
>
>
>
>
> Who knows!
>
>
>
>
>
>
> DIV 1 text
> (but as you can see we cannot advise unless we have a clearer idea of
> what you really want to accomplish)
>
DIV 2 Text
>
>
>
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
Many thanks for the reply.
Since I don't know how to implement the html I think it's better to
show an image example.
Jonathan : the example code you provider is almost perfect. An answer
to your questions:
1) Indeed. div2 should start where the text of div1 stops. The text
of div1 will be a name and will have a maximum of 25 characters.
2) Both divs are defined by it's content (which is dynamic, it's a
scripted site). No fixed sizes thus.
3) They don't have the same height. Div2 will contain a title and a
list of names. The height is thus defined by the length of the list
(which is dynamic)
To summarize, the size of the divs is completely defined by the
content (length of name in div1, length od list in div2) and thus
should have no fixed values.
I hope this clears the mud a little bit:)
Many thanks again
Re: div in div position
am 07.08.2007 19:45:46 von lws4art
Tarscher wrote:
> On 6 aug, 16:31, "Jonathan N. Little" wrote:
>> Tarscherwrote:
>>> On 6 aug, 14:19, "Jonathan N. Little" wrote:
>>>> Neredbojias wrote:
>>>>> Well bust mah britches and call me cheeky, on Mon, 06 Aug 2007 09:41:36 GMT
>>>>> Tarscherscribed:
>>>>>> hi all,
>>>>>> This question is probably already answered a zillion times but I
>>>>>> cannot find an answer to my question.
>>>>>> I have a div in a div
>>>>>>
>>>>>> DIV1 text
>>>>>>
>>>>>> DIV 2 Text
>>>>>>
>>>>>>
>>>>>> Is it possible to position the divs that the text from div 2 is next
>>>>>> to the text of div 1?
>>>>>> I get
>>>>>> DIV1 text
>>>>>> DIV 2 text
>>>>>> but want
>>>>>> DIV1 textDIV 2 text
>>>>>> Many thanks
>>>>>> Stijn
>>>>> Use floats.
>>>> Or don't use DIV use a SPAN. Depends on what you are trying to do. An
>>>> example URL of the real page might help.
>>
>>
>>> I've made a mockup of what and why I want to do achieve.You can find
>>> it here:http://www.flickr.com/photos/11036025@N03/1027802383/
>>> I hope this clarifies things.
>> Clear as mud. An example page of HTML of what you are trying would be
>> preferable.
>>
>> 1) "DIV 2 should start where text of DIV 1 stops" Do you mean DIV 1's
>> line of text should define the left position of DIV 2? Or is DIV 1 to
>> have a static width?
>>
>> 2) are both DIVs dims to be defined by the contents or do you have
>> dimensions for both?
>>
>> 3) Are they to have the same height?
>>
>>
>> "http://www.w3.org/TR/html4/strict.dtd">
>>
>>
>>
>>
>> Who knows!
>>
>>
>>
>>
>>
>>
>> DIV 1 text
>> (but as you can see we cannot advise unless we have a clearer idea of
>> what you really want to accomplish)
>>
DIV 2 Text
>>
>>
>>
>>
>> --
>> Take care,
>>
>> Jonathan
>> -------------------
>> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
>
> Many thanks for the reply.
>
> Since I don't know how to implement the html I think it's better to
> show an image example.
>
> Jonathan : the example code you provider is almost perfect. An answer
> to your questions:
> 1) Indeed. div2 should start where the text of div1 stops. The text
> of div1 will be a name and will have a maximum of 25 characters.
> 2) Both divs are defined by it's content (which is dynamic, it's a
> scripted site). No fixed sizes thus.
> 3) They don't have the same height. Div2 will contain a title and a
> list of names. The height is thus defined by the length of the list
> (which is dynamic)
>
> To summarize, the size of the divs is completely defined by the
> content (length of name in div1, length od list in div2) and thus
> should have no fixed values.
>
> I hope this clears the mud a little bit:)
>
> Many thanks again
>
>
Is this a definition list, if so why not use markup as such and style
anyway you wish...may need example *content* to understand fully what
would be the best route...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: div in div position
am 09.08.2007 17:00:43 von tarscher
On 7 aug, 19:45, "Jonathan N. Little" wrote:
> Tarscherwrote:
> > On 6 aug, 16:31, "Jonathan N. Little" wrote:
> >> Tarscherwrote:
> >>> On 6 aug, 14:19, "Jonathan N. Little" wrote:
> >>>> Neredbojias wrote:
> >>>>> Well bust mah britches and call me cheeky, on Mon, 06 Aug 2007 09:41:36 GMT
> >>>>> Tarscherscribed:
> >>>>>> hi all,
> >>>>>> This question is probably already answered a zillion times but I
> >>>>>> cannot find an answer to my question.
> >>>>>> I have a div in a div
> >>>>>>
> >>>>>> DIV1 text
> >>>>>>
> >>>>>> DIV 2 Text
> >>>>>>
> >>>>>>
> >>>>>> Is it possible to position the divs that the text from div 2 is next
> >>>>>> to the text of div 1?
> >>>>>> I get
> >>>>>> DIV1 text
> >>>>>> DIV 2 text
> >>>>>> but want
> >>>>>> DIV1 textDIV 2 text
> >>>>>> Many thanks
> >>>>>> Stijn
> >>>>> Use floats.
> >>>> Or don't use DIV use a SPAN. Depends on what you are trying to do. An
> >>>> example URL of the real page might help.
> >>
>
> >>> I've made a mockup of what and why I want to do achieve.You can find
> >>> it here:http://www.flickr.com/photos/11036025@N03/1027802383/
> >>> I hope this clarifies things.
> >> Clear as mud. An example page of HTML of what you are trying would be
> >> preferable.
>
> >> 1) "DIV 2 should start where text of DIV 1 stops" Do you mean DIV 1's
> >> line of text should define the left position of DIV 2? Or is DIV 1 to
> >> have a static width?
>
> >> 2) are both DIVs dims to be defined by the contents or do you have
> >> dimensions for both?
>
> >> 3) Are they to have the same height?
>
> >>
> >> "http://www.w3.org/TR/html4/strict.dtd">
> >>
> >>
> >>
> >>
> >> Who knows!
>
> >>
> >>
> >>
>
> >>
> >> DIV 1 text
> >> (but as you can see we cannot advise unless we have a clearer idea of
> >> what you really want to accomplish)
> >>
DIV 2 Text
> >>
> >>
> >>
>
> >> --
> >> Take care,
>
> >> Jonathan
> >> -------------------
> >> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
>
> > Many thanks for the reply.
>
> > Since I don't know how to implement the html I think it's better to
> > show an image example.
>
> > Jonathan : the example code you provider is almost perfect. An answer
> > to your questions:
> > 1) Indeed. div2 should start where the text of div1 stops. The text
> > of div1 will be a name and will have a maximum of 25 characters.
> > 2) Both divs are defined by it's content (which is dynamic, it's a
> > scripted site). No fixed sizes thus.
> > 3) They don't have the same height. Div2 will contain a title and a
> > list of names. The height is thus defined by the length of the list
> > (which is dynamic)
>
> > To summarize, the size of the divs is completely defined by the
> > content (length of name in div1, length od list in div2) and thus
> > should have no fixed values.
>
> > I hope this clears the mud a little bit:)
>
> > Many thanks again
>
> Is this a definition list, if so why not use markup as such and style
> anyway you wish...may need example *content* to understand fully what
> would be the best route...
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
You can find an example of what I want here: http://www.28edegem.be/tree.htm
The div containing SelfMate should also encapsulate the other content
(like shown in the image mockup). This has to be done since the divs
are created dynamic via a scripted site.
The div with Ploeg 1 has to start where Selfmate stops.
I hope this is more clear now?
Regards,
Stijn
Re: div in div position
am 09.08.2007 20:26:26 von lws4art
Tarscher wrote:
> You can find an example of what I want here: http://www.28edegem.be/tree.htm
>
> The div containing SelfMate should also encapsulate the other content
> (like shown in the image mockup). This has to be done since the divs
> are created dynamic via a scripted site.
> The div with Ploeg 1 has to start where Selfmate stops.
>
> I hope this is more clear now?
1) Looks like a table!
2) Don't use FONT element
3) don't use empty
to space adjust the margins on the element
4) don't use px for font sizes
"http://www.w3.org/TR/html4/strict.dtd">
By Table
SelfMate |
Ploeg I
Tak 1
- Jan Janssens
- Koen Koenen
- Frank franken
Tak 2
- Jan Janssens
- Koen Koenen
- Frank franken
|
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com