Log In · Register

 
 
Closed TopicStart new topic
Custom module width needs change., I bow down to your greatness. Plz Help!
J-sin
post 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 -->
 
justlikehell
post 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...
 
talcumpowder
post Jun 6 2005, 09:41 PM
Post #3


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Use a width of 160, that's the standard width... I believe.
 
J-sin
post Jun 7 2005, 01:42 AM
Post #4


Member
**

Group: Member
Posts: 16
Joined: Apr 2005
Member No: 128,746



THanks guys. I'll give it shot...
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: