Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Custom Login Page CSS Rounded Corners

Custom Login Page CSS Rounded Corners

Locked

Views: 9,404

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
6 Apr 2009, 5:18 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Custom Login Page CSS Rounded Corners

Here is a link to my custom login page:

https://www.limelites.co.uk/index.php?main_page=login

It's getting there, but I am trying to make the corners or the border round using CSS.... Finding it a nightmare!

Been googling and this is the best they can come up with:

HTML:

<div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr"> </div></div></div></div></div></div></div></div>

CSS:
.t {background: url(dot.gif) 0 0 repeat-x; width: 20em}
.b {background: url(dot.gif) 0 100% repeat-x}
.l {background: url(dot.gif) 0 0 repeat-y}
.r {background: url(dot.gif) 100% 0 repeat-y}
.bl {background: url(bl.gif) 0 100% no-repeat}
.br {background: url(br.gif) 100% 100% no-repeat}
.tl {background: url(tl.gif) 0 0 no-repeat}
.tr {background: url(tr.gif) 100% 0 no-repeat; padding:10px}

How would I code this into my tpl_login_default.php and my custom login.css files?

6 Apr 2009, 5:23 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Custom Login Page CSS Rounded Corners

There are a couple of free templates that have css rounded corners at http://(sorry, site offline)/

Might look at niftyzen, if my memory serves me right

6 Apr 2009, 6:25 PM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

It's so easy to just add:

-moz-border-radius: 5em;

to the stylesheet but that only works for mozilla browser... That's gonna have to do, spent toooooo much time on this :-)

7 Apr 2009, 12:39 AM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

Since it's for the log-in page only, why not make the width static, even if your width is dynamic elsewhere, and then use a background graphic with your rounded corners, with the stylesheet only used to control the placement of the form elements over that background?

Rob

7 Apr 2009, 12:33 PM
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

Very nice!

Rob

7 Apr 2009, 8:26 PM
#7
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

Thanks.... :smartalec:

7 Apr 2009, 11:51 PM
#8
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

humm, you should start designing template for people like me , graphically challenged :cry:

7 Apr 2009, 11:54 PM
#9
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

Hi Tony, long time.... how's your biking going?? Hope you're getting the weather :-)

I've been too tied up in my own, knee deep in puzzling code as always :-) Check out some of my recent threads, don't seem to get any answers these days... questions must be getting too complex :-)

8 Apr 2009, 12:08 AM
#10
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

yep , been long time,
weather ??? biking ?? :shocking: well, still snowing . lol.
i been checking some of your question , and sure is getting complex enough that you need top guys attention ..

i can only add 5px padding here and there , thats all i can do with zencart . :blush:
if you have padding question .. i be there to answer it :P

8 Apr 2009, 12:18 AM
#11
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Custom Login Page CSS Rounded Corners

Yikes, still snowing in April.... never mind, spring flowers and sunshine just around the corner :-)

I think you underestimate yourself, I've seen what you can do and it's a lot more than just padding :-)

P.S., what's padding?!?? lol