This is a migrated thread and some comments may be shown as answers.

Problems with spacing docks within a zone

1 Answer 117 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mitul
Top achievements
Rank 1
Mitul asked on 25 Jun 2008, 03:22 PM
Hello,

So basically im creating a page that has 2 dockzones both with orientation set to hoirzontal. What I would like to do is leave around 20-25 pixels between each dock within the zone, and like it to remain like that alwys, i.e. when a new dock rom another zone is dragged on there, it should also remain 20-25 pixels away from the existing ones.

I tried setting the Left properties of the docks to no avail, I also put a style tag and set margins but somehow this did not give me the desired reults either. Is there an easy way to do this, just a simple css hack. or am i missing something here?

Thanks for your replies!

Best,
M

1 Answer, 1 is accepted

Sort by
0
Accepted
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 26 Jun 2008, 04:40 PM
You should add padding to RadDocks.You can change RadDock_Default class  in Skin css file(e.g. C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Skins\Default\Dock.Default.css)
For example:
.RadDock_Default {
background:window none repeat scroll 0% 0%;
color:windowtext;
margin:0pt 5px 5px 0pt;
text-align:left;
}


to

.RadDock_Default {
background:window none repeat scroll 0% 0%;
color:windowtext;
margin:0pt 5px 5px 0pt;
padding: 5px 5px 5px 5px;
text-align
:left;
}
Tags
Dock
Asked by
Mitul
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or