CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 2/7/2008 3:18:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
miggl
Asp.Net User
Margin Between Web Parts2/7/2008 3:18:34 PM

0/0

I haven't quite been able to figure this one out yet: how do I specify margins between my web parts? I have skinned my web parts with a border, and I'd like to space them with 10px gaps. Any ideas?

Thanks!

vinz
Asp.Net User
Re: Margin Between Web Parts2/7/2008 3:37:06 PM

0/0

What about setting the Padding attribute in the Zone? 


Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post fixed your problem.


miggl
Asp.Net User
Re: Margin Between Web Parts2/7/2008 3:48:39 PM

0/0

Setting that actually sets the padding between the content and the webpart border, it doesn't seem to set the outside padding of the webpart.

Actually, I just tried setting both Padding and PartChromePadding from 0 to 10, and nothing changed on the layout.

 Update: after some more research it turns out my CSS was conflicting with the table layout of the web parts. I resorted to using the following CSS to specify webpart layout:

 

1    table>tbody>tr>td>table>tbody>tr>td>table>tbody>tr>td
2    {
3    	border-collapse: collapse;
4    	padding: 0px;
5    	padding-bottom: 10px;
6    	margin: 0px;
7    	height: 0px;
8    }

Now the issue arrises on how to differentiate between vertical and horizontal webpart orientation.

Using the following I was able to apply a consistent layout regardless of horizontal or vertiacal zone orientation. However, I'm not sure if this will work for everyone, it may just work for my specific case. The reason I choose this path is that applying a padding on all sides broke my layout. Also note that this will not work for those of you using nested tables (i.e. for layout); I use divs for specifying layout, so I don't have nested tables other than those created by the .NET framework.

1    table>tbody>tr>td>table>tbody>tr>td>table>tbody>tr>td
2    {
3    	border-collapse: collapse;
4    	padding: 0px;
5    	padding-bottom: 10px;
6    	padding-right: 10px;
7    	margin: 0px;
8    	height: 0px;
9    }
 
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007
Access 2007: The Missing Manual Authors: Matthew MacDonald, Pages: 734, Published: 2006
Beginning CSS: Cascading Style Sheets for Web Design Authors: Richard York, Pages: 630, Published: 2007
Special Edition Using Microsoft Office 2003 Authors: Ed Bott, Woody Leonhard, Pages: 1368, Published: 2004
Essential SharePoint: Microsoft Office Document Collaboration in Action Authors: Jeff Webb, Pages: 310, Published: 2005
The Orb-weaving Spiders of Canada and Alaska: Araneae: Uloboridae, Tetragnathidae, Araneidae, Theridiosomatidae Authors: Charles D. Dondale, James H. Redner, National Research Council Canada, P. Paquin, Canada Agriculture and Agri-Food Canada. Research Branch, Conseil national de recherches Canada, H.W. Levi, Pages: 371, Published: 2003
Beginning Web Programming with HTML, XHTML, and CSS Authors: Jon Duckett, Pages: 840, Published: 2004

Web:
Margin Between Web Parts - ASP.NET Forums I haven't quite been able to figure this one out yet: how do I specify margins between my web parts? I have skinned my web parts with a border, ...
Thinking Space: Evolution of World Wide Web, Part 2, Theory and ... I have uploaded the second part of the article---Evolution of World Wide Web on April 27. ... This trend also means that the current distinction between web ...
Lambros's Space on SharePoint & .NET Development: ASP.NET Web ... NET web parts. There is a fuzzy line though between them since the first inherits from the second. I am not totally against ASP.NET web parts in WSS but I ...
chris beard's blog: The Space Between, Part II Listed below are links to weblogs that reference The Space Between, Part II: ... Can we right from the "git.go" associate Weave with "synchronized web"? ...
how to shrink webparts's space? - ASP.NET Forums any good idea? make the space between the webparts, ... when i make the page in Designmode, there is much space between webparts. ...
Reporting Services WebParts Space Heats Up - Bryant Likes's Blog Jan 24, 2005 ... What does BIP have to do with Reporting Services WebParts? Well the BIP viewer can view Reporting Services Reports (and the BIP Viewer is a ...
Cascading Style Sheets Class Definitions for Windows SharePoint ... .ms-ToolPartSpacing. Spacing between Web Parts. .ms-ToolStripSelected. Hover behavior for the title bar at the top of the tool pane in Web Parts. ...
Sharepoint Web Part Maintenance Page Url | Web Parts Sharepoint Calendar Control Sharepoint Web Part Signora, he liked the spirit, as you appear ... to realtor web page in this quarter which lay between the two vessels, ...
Connected Page Viewer Web Part - Technical Space of Sundar Narasiman There is a Link web part and a Page viewer web part on the web part page. ... By default the page viewer web part does not support connections. Solution:- ...
Web Authoring FAQ: Images (Web Design Group) How do I link different parts of an image to different things? .... Extra space between images is often created by whitespace around the tag in the ...

Videos:
Secret Space, Volume 2 "Alien Invasion" 1/4 A well put together documentary revealing a wide range of evidence that points towards NASA hiding a big secret to mankind "we are not alone and have...
Spider-Man Web of Shadows - Final Boss Part 4 (End Sequence) If you can believe it, I ran out of storage space on my memory card on the playthrough when I finally beat the final boss.....so here is what happens...
Secret Space, Volume 2 "Alien Invasion" 2/4 A well put together documentary revealing a wide range of evidence that points towards NASA hiding a big secret to mankind "we are not alone and have...
Classic Nostalgia Critic - Space Jam Review Part 1 Credit to: http://www.thatguywiththeglasses.com/ For all the videos and brand new ones. I don't know if I should even bother writing anything in he...
Secret Space, Volume 2 "Alien Invasion" 3/4 A well put together documentary revealing a wide range of evidence that points towards NASA hiding a big secret to mankind "we are not alone and have...
Secret Space, Volume 2 "Alien Invasion" 4/4 A well put together documentary revealing a wide range of evidence that points towards NASA hiding a big secret to mankind "we are not alone and have...
The 4-Web: a 4-Space Analogue of the Sierpinski Triangle In his 1915 paper "Sur une courbe dont tout point est un point de ramification," Sierpinski describes the construction of a curve in the plane. This ...
Classic Nostalgia Critic - Space Jam Review Part 2 Credit to: http://www.thatguywiththeglasses.com/ For all the videos and brand new ones. I don't know if I should even bother writing anything in h...
ANBERLIN WEB/DVD PART 5 OF 7 BULL RIDING W/ JOSH EMERY! KNATE PERFORMS SURGERY ON HIMSELF. LIVE FOOTAGE SOMA. TURKEY JUMPS THROUGH FRONT WINDOW OF OUR BUS! ON TOOTH AND NAIL TOUR...
Offline Online Web / and Firefox 3 The Internet increasingly connects people and Web systems. As the online life becomes part of people's cultural habits, connectivity dependency creat...




Search This Site:










user / role / provider model = confusion

visual studio giving error while creating new project.

roles authentication

treeview selectednode style problem.

treeview control

impersonaization

custom control problem,help!!

problems uploading with visual web developer

can't get simple aspx to run on remote iis

problem connecting asp.net to active directory

urgent - getting ad groups via forms authentication and active directory

what's the difference between 'build' and 'publish'

open source shipping component

dotnetnuke community forums

labelcontrol question

xmod - customized content and display

too much white space???

can't log in with internet explorer - trapped on the login page

oh,help! my "update"and "delete"cannot work,why?thank you all!

getting name of control which generated postback

wizard finish button

rcms faq dnn3?

host problem

ascx a crossed applications

novell netware nds authentication

timeout in formsauthentication

store error

announcement module

printing the white paper

killing processes "access denied"

 
All Times Are GMT