Custom module width needs change., I bow down to your greatness. Plz Help! |
Custom module width needs change., I bow down to your greatness. Plz Help! |
Jun 6 2005, 05:26 AM
Post
#1
|
|
![]() Member ![]() ![]() Group: Member Posts: 16 Joined: Apr 2005 Member No: 128,746 |
Hi guys. I added a custom module on my site. I got the script from CB Script section. It places the custom module right above the supscription module. However, when I place my content in there, I discovered that the width of the custom module was unequal from the rest of the modules and it looks really awkward. Can you suggest anything so that the width becomes the same with other modules? THanks. Appreciate it. God Bless...
Jason~ Here's the script I used. CODE <!-- begin code provided by createblog.com -->
<script> titleContent = '<center>MODULE TITLE</center>'; moduleContent = 'MODULE CONTENT'; sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNode sub.insertAdjacentHTML('beforeBegin','<table border="1" cellspacing="0" cellpadding="4" width="200" class="left"><tr><th valign="top" align="left" class="left">' + titleContent + '</th></tr><tr><td valign="top" class="left">' + moduleContent) sub.insertAdjacentHTML('beforeBegin','<BR>'); </script> <!-- end code provided by createblog.com --> |
|
|
|
![]() |
Jun 6 2005, 05:45 PM
Post
#2
|
|
|
mmhmm ![]() ![]() Group: Member Posts: 17 Joined: Apr 2005 Member No: 123,258 |
If it sticks out more than the other modules, adjust the width section (... cellpadding="4" width="200" class="left">...) to a smaller number... and if it needs to stick out further, use a bigger number... should fix the problem...
|
|
|
|
J-sin Custom module width needs change. Jun 6 2005, 05:26 AM
fishcake-y Use a width of 160, that's the standard width.... Jun 6 2005, 09:41 PM
J-sin THanks guys. I'll give it shot... Jun 7 2005, 01:42 AM![]() ![]() |