Borders with PHP?

Questions and tutorials related to Cascading Style Sheets *all versions*

Moderators: macek, egami, gesf

frodo
New php-forum User
New php-forum User
Posts: 7
Joined: Fri Apr 02, 2004 10:54 pm
Location: Florida

Borders with PHP?

Postby frodo » Fri Apr 02, 2004 11:15 pm

:shock:

Anyone know how to make dotted table borders w/ php? Is it even possible? I am pretty new, just looking for any advice.

Thanks in advance!

Frodo

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Fri Apr 02, 2004 11:30 pm

This has nothing to do with PHP. PHP has no control over how things are displayed on the client side -- all PHP can do is print the HTML and CSS that changes how it looks on the client side.

That said, the best CSS reference you'll find is the one at w3schools, but here's the gist:
[php]<html>
<head>
<style type="text/css" media="screen">
table.dotted-borders {
border: 1px dotted blue;
}
</style>
</head>
<body>
<table class="dotted-borders">
<td>Data!</td>
<td>More data!</td>
</table>
</body>
</html>[/php]
Btw, IE/Win is stupid and displays "dotted" borders like "dashed" ones. Mozilla/Firefox get it right, as do (I think) current versions of Opera and Safari.

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

css

Postby ruturajv » Mon May 03, 2004 9:04 pm

Code: Select all

/*this is your css*/

table {
  border: 1px[border size] [dashed|dotted] black[any other defined color];
}

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Borders with PHP?

Postby WiZARD » Mon Jun 21, 2004 3:13 am

i'm use images 4x4 pixels like
0088
8800
and into background


Return to “CSS”

Who is online

Users browsing this forum: No registered users and 1 guest