[jQuery] Re: How to center text (sweet mother of mary can it be this hard?)

2008-07-03 Thread Micky Hulse
Is it just me, or did anyone else cringe at the sight of curvyCorners "generated source code"? I still think that if you use a css-only approach, the use of four gif background corner images would barely impact page load times... And the source code markup would be much less horrendous as comp

[jQuery] Re: How to center text (sweet mother of mary can it be this hard?)

2008-06-30 Thread spicyj
The problem is that curvycorners is adding "float: left;" to the innermost tag, causing the "Preview" to be on the left. The source claims that it's a fix for negative margins.

[jQuery] Re: How to center text (sweet mother of mary can it be this hard?)

2008-06-30 Thread LTG
Thank you all very much for the proposed solutions, here are the results: @Dan G.: Dan, I added what you proposed but it seems to center the red panel in the center of the screen, I'm try just to center text within the red panel. @Gearóid: What you suggested in already in the sample, doesn't wo

[jQuery] Re: How to center text (sweet mother of mary can it be this hard?)

2008-06-30 Thread Giuliano Marcangelo
Line 101 of the curvy corners js file, find $(contentContainer).css({ .., *float:"left"*, .,,.,}); remove the *float:left*declaration and the text will centre. tested in IE7,FF,Opera,Safari (Windows) 2008/6/30 Gearóid O'Ceallaigh <[EMAIL PROTECTED]>: > > Why not just de

[jQuery] Re: How to center text (sweet mother of mary can it be this hard?)

2008-06-30 Thread Gearóid O'Ceallaigh
Why not just define a css class with "text-align: center" and add this to whatever element you need centering? I'm presuming you want to center the "preview" text in the example so this should center it to your rounded corner div. If you want it centered vertically also, you may have to use some

[jQuery] Re: How to center text (sweet mother of mary can it be this hard?)

2008-06-30 Thread Dan G. Switzer, II
ltg, >I really did not want to post here and ask for help on centering >text. But I have created the simplest possible JQuery sample page, >used Firebug, and still can't figure it out. > >Can anyone say what it would take to center text on this page: > >http://dev.hdgreetings.com/test.htm You c

[jQuery] Re: How to center text (sweet mother of mary can it be this hard?)

2008-06-30 Thread Micky Hulse
LTG wrote: > Any help would be so appreciated. Hi LTG, If you disable JS, then your text centers. Using dev toobar via FF2.x, I viewed generated source, and wow! I have never seen so much markup for something so simple If I were you, I would just use one of the CSS-only techniques found h