1
vinit
Default Template: system_userform.html issue
  • 2004/10/15 17:18

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


Hi i was trying to modify the system_userform.html in the default template to provide a tabular view for the login page.
I was able to create is succesfully. Just had one problem. All the table automatically got width of 100% that was weired. could someone look into this code and tell me where am i wrong.


Quote:

























<{$lang_login}>
 


<{$lang_username}>  


<{$lang_password}>  

 




  <{$lang_notregister}>
 


























<{$lang_lostpassword}>
 
<{$lang_noproblem}>


<{$lang_youremail}> 


 


 




2
ackbarr
Re: Default Template: system_userform.html issue

you didn't do anything wrong. The default theme's css has a style defined similar to this:
table {width100%; padding3font-sizesmall;}

which sets every table's default width to 100%.

To override this behavior, you need a hook to identify the tables you don't want to be 100%. A common way to add a hook is to add a
tag with an id around the entire contents of that template:

<div id="userform">

div>


then in your stylesheet add:
#userform table { width:auto;}

3
ackbarr
Re:Default Template: system_userform.html issue

actually I see you already have a div surrounding your tables. You could add the id to that div instead of creating an additional one.

4
vinit
Re:Default Template: system_userform.html issue
  • 2004/10/15 17:37

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


thx for that great tip let me test it.
And would even suggest you to test it. because this really looks better than the deault login page

5
vinit
Re:Default Template: system_userform.html issue
  • 2004/10/15 17:52

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


just added

xoops.css
Quote:

#free_table table {width: 300px; }


modified the div tag with id="free_table"

and things really looked good.

note: some might need to change widht as per the font size used in there theme other wise this one looks good.

6
vinit
Re:Default Template: system_userform.html issue
  • 2004/10/15 17:57

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


Modified Code

Quote:

























<{$lang_login}>
 


<{$lang_username}>  


<{$lang_password}>  





<{$lang_notregister}>
 






















<{$lang_lostpassword}>
 
<{$lang_noproblem}>


<{$lang_youremail}> 





 



Login

Who's Online

1069 user(s) are online (185 user(s) are browsing Support Forums)


Members: 0


Guests: 1069


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits