PDA

View Full Version : center the script and make it simple



morfer
12-22-2009, 07:12 PM
1) Script Title: gAjax RSS Ticker example one

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssticker.htm

3) Describe problem: ┐How can I make the script be centered in the page and erase the border and the color of the background?

ddadmin
12-23-2009, 08:21 AM
You should be able to do this just by editing the CSS of the script. Assuming your DIV carries the ID "example1" for example, the code in red in your CSS should center it plus erase the border:


#example1{ /*Demo 1 main container*/
width: 450px;
height: 28px;
border: 0 solid black;
padding: 4px;
background: white;
margin: auto;
}

morfer
01-09-2010, 05:59 PM
thank you very much...I forgot the CSS was in the same HTML inserted, so thanks for your useful help.

:D