Hi Guys,
I, probably like most of us, have the occasional need to insert a PHP script / template into my website. I have no problems on the install, or setup, and there are tons of scripts available, but the formatting has become an issue. I am hoping someone can supply advice with.
Most of these 'scripts' include a template of the form, widget or object that will be used as the front end of the PHP call. Being a newbie, I try and copy the code and paste it into my existing webpage with dreadful effects. Each time I do this the page format gets all messed up, widens, images move etc.
Does anyone know the best way to take an existing widget, form, etc from a PHP script and make it fit nicely into a webpage.
An example would be adding a site search option like sphider, into an existing page design.
Page formatting PHP Templates
Moderator: General Moderators
Re: Page formatting PHP Templates
Chuck Norris does, but I wouldn't risk asking him.Does anyone know the best way ...
1) Look at the CSS of those 'templates', maybe classes / ids conflict or overwrite your CSS.
2) Set default style for forms, inputs, label, etc.
3) There isn't universal way of doing this, you will need to edit CSS/HTML/JS of each widget to make sure it looks as you want it to look.
Yes there are. For example on dynamicdrive.com a lot of scripts are coded really badly and I will better reinvent the wheel than use them.and there are tons of scripts available