Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

2 Divs: problems with positioning

 
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello, I have this code below:



My problem is that content div WILL NOT display appropriately.

I cannot use position:absolute.

My question is: can anyone think of something that I can do which does not involve position: absolute to position this div to the right of the other div?

This is killing me!

Thanks,
Michele





 
Marshal
Posts: 67446
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Did this not get addressed in your other post?

Also, that's way too much code to wade through. Create an SSCCE that demonstrates the problem and wither post it here, or as a JsFiddle.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Report post to moderator
I don't know if you can see this or not, but my layout requires there to be two divs sitting next to each other.

I tried to mock it up and I put your div solution you recommended at the bottom to show a contrast.

Thanks,
Michele
screenshot.png
[Thumbnail for screenshot.png]
Screenshot of my layout
 
Bear Bibeault
Marshal
Posts: 67446
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
OK, not sure what the question is at this point. Your example looks like you've got your sidebar and your content side by side.

In any case, let's continue any discussion in the original topic.
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic