WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Script help Empty Script help Tue Nov 16, 2010 8:58 am

Drogba921


Registered Member
Registered Member
This is more Java related.

We're working on a banner ads system, and we have a new rotator.

http://www.forumsrule.com/misc.php?page=bannerads

It will not however, center. We've tried div align, and just plain center.

can i have a tech look at the code and tell me how to center?

Thanks!

http://www.codinghelp.org

2Script help Empty Re: Script help Tue Nov 16, 2010 3:27 pm

Guest


Guest
Try this:
Code:

<div style="margin-left: 0 auto; margin-right 0 auto;text-align:center;">CODE HERE</div>

3Script help Empty Re: Script help Wed Nov 17, 2010 3:58 am

Drogba921


Registered Member
Registered Member
didnt work.

http://www.codinghelp.org

4Script help Empty Re: Script help Wed Nov 17, 2010 5:52 am

Guest


Guest
ok try this:
Code:

<div style="width: XXpx;margin-left: auto ;margin-right: auto ;">CODE HERE</div>

replace XX with the banner width (:
i hope this will work xD

5Script help Empty Re: Script help Wed Nov 17, 2010 11:19 pm

Guest


Guest
Gangstar15 wrote:i hope this will work xD
It won't. Wink

Adding overflow:hidden; to the DIV tag will, though. Smile

6Script help Empty Re: Script help Thu Nov 18, 2010 12:16 am

Guest


Guest
Right right lol Very Happy i don't really use this tag Very Happy

7Script help Empty Re: Script help Thu Nov 18, 2010 3:58 am

Drogba921


Registered Member
Registered Member
It worked, thank you!!

http://www.codinghelp.org

8Script help Empty Re: Script help Thu Nov 18, 2010 5:28 pm

Jophy

Jophy
Registered Member
Registered Member
Solved => Locked

http://www.socialtechforum.com/

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum