Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET CSS
Whenever i write display:inline and position:fixed together in style.. browsers scrolling functionality quits..
As a result only fixed amount of page is displayed...
I want to display two div's adjacent to each other at all times...
Posted 26-Feb-13 1:38am
Comments
ryanb31 at 26-Feb-13 7:53am
   
There are lots of examples online how to do this. Have you looked at them?
Member 9644631 at 26-Feb-13 10:38am
   
Can u please give me the links.. It would be great if u could.. Thanking you
ryanb31 at 26-Feb-13 10:39am
   
http://www.lmgtfy.com/?q=two+div%27s+adjacent+to+each+other+at+all+times
sri senthil kumar at 1-Mar-13 8:20am
   
“Displaying two div's adjacent” if that’s all your requirement then you can go for “float” attribute with left and right value. If not explain bit more on what you want to do?
Member 9644631 at 1-Mar-13 9:11am
   
I have a gridview and a treeview...
One div consists of treeview and the other one consists of gridview...
These two div's have to be placed adjacent to each other always...
When the number of columns are less the div's are displayed adjacent to each other..
But when the number of columns increase the div with gridview crashes below treeview...
I want it displayed adjacent to each other..
sri senthil kumar at 4-Mar-13 0:25am
   
Good, you want that to fixed in screen always like, even if u scroll up and down the postion of them to be static?
 
To display the div;s adjacent to each other you can check here "http://jsfiddle.net/rmMqA/2/" you can use overflow property to make the div hav fixed size but when grid size increases scrollbar will come and it wont push the second div down.
vinodkumarnie at 9-Mar-13 3:26am
   
Can you share your Source code and css you applied for division's...?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100