Welcome to Dream.In.Code
Become an Expert!

Join 149,507 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,351 people online right now. Registration is fast and FREE... Join Now!




Centering Baagrid on the page

 
Reply to this topicStart new topic

Centering Baagrid on the page

edlentz
30 Jul, 2007 - 07:35 PM
Post #1

New D.I.C Head
*

Joined: 28 Jul, 2007
Posts: 3


My Contributions
I am using Baagrid in several places and it is always lined up on the left side of the screen. How can I center it?

Thanks
User is offlineProfile CardPM
+Quote Post

snoj
RE: Centering Baagrid On The Page
30 Jul, 2007 - 08:02 PM
Post #2

Fell off the face of the earth
Group Icon

Joined: 31 Mar, 2003
Posts: 3,325



Thanked: 9 times
Dream Kudos: 750
My Contributions
That's an HTML/CSS question.

Moved.
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Centering Baagrid On The Page
30 Jul, 2007 - 08:22 PM
Post #3

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,481



Thanked: 161 times
Dream Kudos: 9050
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
There are a couple of ways to do this:

1) Put in inside a <center></center HTML tag (outdated but still works)
2) Create a CSS class for it and align it that way;

CODE

.BaardGrid
{
    MIN-width: 750px; (or whatever width you want)
    MARGIN: auto;
    width: 800px; (again whatever width you want)
    BACKGROUND-COLOR: #f8f8f8; (Color you want)
    TEXT-ALIGN: left;

}


Then apply that style to your grid and that should center it
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 07:09PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month