Jump to content
stormtracker

Adding div side by side

Recommended Posts

Hello wish to create the location on the left and the temperature on  right of the location how can I do this mike soruse code here 

<div class="temperature"><span id="temperature">0</span>&deg;</div> 

 

Share this post


Link to post
Share on other sites

There are many solutions for positioning elements like:

1-make div display as inline-block

2-using float proprieties

tell me more what do u want to do and I'll help you  

Share this post


Link to post
Share on other sites

Hello,
You can do it with the use of bootstrap. Apply row class and then use two div in a single div which has row class.

Share this post


Link to post
Share on other sites

Using bootstrap is overkill for very basic problem and would you mind stop replying to outdated already answered topics.

Share this post


Link to post
Share on other sites

dsonesuk

Just curious , how does one know if something has been answered successfully ? 

There doesn't seem to be an 'answered icon' any where .

Thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...