473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to place different div elements in single line?

I want to place three different labels in single line.

Example:
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. <div id="lbl1" class="Label">
  4.     <div class="Label-pnl10010">
  5.         <span class="Label-pnl10010-lbl10010">Are you sure you want to move the student(s) below from</span>
  6.     </div><div class="Label-pnl10020">
  7.         <span class="Label-pnl10020-lbl10010">SchoolName 1</span>
  8.  
  9.     </div><div class="Label-pnl10030">
  10.         <span class="Label-pnl10030-lbl10010">to</span>
  11.     </div><div class="Label-pnl10040">
  12.         <span class="Label-pnl10040-lbl10010">SchoolName 2</span>
  13.     </div>
  14. </div>
  15.  
  16.  

I need to style in such a way that the statement should look like "Are you sure you want to move the student(s) below from SchoolName 1 to SchoolName 2".

SchoolName1 and SchoolName2 are not constant. The schoolNames keep changing.

Is this possible?
Jul 19 '10 #1
5 4191
Dormilich
8,658 Expert Mod 8TB
there are two main options: float and inline. but maybe you don’t need the divs at all.
Jul 20 '10 #2
drhowarddrfine
7,435 Expert 4TB
What generated this markup? Looks like some government issue or large corporation treating HTML like part numbers.
Jul 20 '10 #3
@Dormilich
Thanks Dormilich.

Can you please elaborate your reply. I mean, can you tell me that how can I use the float and inline, and how can I do that without divs.
Jul 20 '10 #4
Dormilich
8,658 Expert Mod 8TB
to begin with, I see no need to use the divs at all, if you want the text in one line. no divs => all in one line without much ado.
Jul 20 '10 #5
@Dormilich
Thank you Dormilich.

Float and inline worked. :)
Jul 20 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Gooseman | last post by:
Hi Just getting into XSD and have some questions: If I have several different elements that all have identical attibutes, what is the best way of conveying that in the XSD? Is there a way...
10
by: Mike Dickens | last post by:
hi, suppose i have: <a> <b i="Y" j="aaaa"/> <c i="N" j="bbbb"/> <d i="Y" j="cccc"/> <e i="N" j="dddd"/> <f i="N" j="eeee"/> <g i="Y" j="ffff"/>
14
by: Alex Vinokur | last post by:
Here is some function that detects if a vector contains only different elements bool vector_contains_only_different_elements (const vector<int>& v) { for (int i = 0; i < v.size(); i++) { if...
4
by: Aaron Ackerman | last post by:
I want to be able to do the following in a single line. newDataSetRow.AdditionalHours = if IsDBNull(vdsPublisherLocal.Tables("CaseInstance").Rows(i).Item("AdditionalHo urs")) then 0 end if ...
26
by: unexpected | last post by:
If have a list from 1 to 100, what's the easiest, most elegant way to print them out, so that there are only n elements per line. So if n=5, the printed list would look like: 1 2 3 4 5 6 7 8...
2
by: garyusenet | last post by:
I have a multi line text box, i'd like to store the contents of this textbox to a text file. However when I write the value of ' textbox.text ' to the file it is written verbatim spanning many...
2
by: sk.rasheedfarhan | last post by:
Hi , I have to extract a xml file line by line. Here is my xml Step1: <category name= "name" guid="{guid}"state="enabled"> Step2: <rules> Step3: <rule name="rule name" guid="{guid}"...
10
by: Itaichuk | last post by:
Hi I read in several CSS tutorials that block-level elements, such as <div& <pare rendered with an implicit line break before and after. I set to test this out using the following HTML: I...
0
by: machhalemukesh | last post by:
I am new to regular Expressions. I have two different regex to match email & phone no. I want to match following & split it accordingly. "Email: m_machhale@gmail.com" "Phone No: 45786547546"I have...
1
by: vikastcser | last post by:
Hi All , I have a table where four rows are there and each row has two tds.one td is for label and two image icons and other td is used for keeping numeric values. I am able to accomodate digits...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.