Jump to content

td element borders


jimfog

Recommended Posts

As the title says I have a code where I loop through the days of the week but the td element borders that contain the days are not echoedin the browser:

echo '<table width="100" border="1">	 <tr class="weekdays">';	 	 for($startwweek;$startwweek<=$endwweek;$startwweek->modify('+1 day')->format('d')){echo  '<td>'.$startwweek->format('d ').'</td>';}		  echo '</tr> </table>'; 

Here is the image to understand what I am talking about:https://skydrive.live.com/redir?resid=BE27434B2AAC8130!235 The funny thing is that when i run the code in Dweaver it works,in Netbeans it does not, the only assumption I can make is that in Netbeans-as it is there where I make my app and there is much more code there(the rest)-something "jams" with the borders of thetd elements. What could be possible wrong? I wonder if sth in the css file is causing that, some rule maybe.

Link to comment
Share on other sites

It seems I found the solution to the problem-it is css related:

td{    border-style: none;}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...