Log in

View Full Version : Freezing 2 coloumns using div tag



rohitkamat
09-08-2011, 06:16 AM
I want to freez 1st 2 coloumns using div in a horizontal scroll how do i do that..??
im using display tag to display details from table

djr33
09-08-2011, 04:41 PM
Post a link to your page and give us more information. It is unclear what you want to accomplish.

You can use the CSS 'position' attribute to set, for example, a fixed position. This might help.

You can also set scrolling with CSS, and combined with width, you should be able to manage more or less what you're describing, if I generally understand.

Brillig
09-08-2011, 08:03 PM
Yes, if you're trying to do what it seems like, use


position:fixed;
top:0px;
right:1px;

And set the top and right where you want them. You'll also probably need to set the height and width to the correct dimensions (probably using % for the height if you want it relative to the browser window, commonly 100% if you want it taking up the whole side).