Previous Thread
Next Thread
Print Thread
Rate Thread
#219598 06/22/2002 8:06 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I've just a template collection where all tablesurround-borders are removed. Since all these tables are in the templates and are set to a value of one on both cellspacing and cellpadding I haven't been able to remove them without changing all templates. If anyone has any other suggestion I'd be glad to hear of them.

Anyways, I've done a search and replace in all templates to remove the tablesurround class attribute as well as setting cellpadding and cellspacing to 0 in those tables. I also had to change the open_table function in ubbt.inc.php as well as a place in newuser.php.

If anyone is interested in having these templates just let me know and I'll upload them. See attached image for an example from the postlist page.
Attachments
50904-borderless_templates.png (0 Bytes, 290 downloads)

Sponsored Links
Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Im almost 95% certain that borderwidth and all that can be controlled through cascading style sheets. So if the current templates are specifying all that, hardcoded into every table, it would probably be best to remove it and let us control it through CSS. Changing the CSS would control tables in all templates without the need for changing every single template.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yeah there are options for changing border-widths and other things but if they are set in the html it doesn't work with any of the values I tried, and I tried everything that looked to be remotely like it could change those values.

Didn't think of letting the class be and not setting the cellspacing and cellpadding though, then it would probably work with the css.

It works now at least, I'll leave it at that for now. =]

c0bra #219601 06/23/2002 10:01 AM
Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Yeah, if its specified in the html code then takes prefference over the css.
The thing I suggest is to have the templates without it being specified in the html code. That way anyone can easily make it the way he likes it, only changing one file (the *.css)

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Yeah, I'd like that as well and I could change my templates into that if someone wants, now that I've fixed some things it'll only be one simple search and replace.

But won't old browsers not show the borders correctly if this is done? I don't think Netscape 4.x supports those css values. But I'm not sure.

Sponsored Links
c0bra #219603 07/19/2002 12:53 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
One of the best resources I've found for CSS:

The complete CSS guide

Doing things with CSS makes making changes later a lot easier, but you'll pull your hair out trying to design a page using CSS if you don't know what is and isn't supported...

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks, I'll have a look at that page.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)