Having a very bad day :(
Why does .NET default to CellPadding and CellSpacing of 2?!
How on earth can I set them to all be 0.
I tried adding a table style to the style sheet, but cellpadding and cellspacing do not come up in intelisense :(
Any ideas?
WokaWhy is that VS.NET's fault? :rolleyes:
For cellpadding:
padding: 0 0 0 0;
For cellspacing, it's best to leave it in the table tag, I haven't seen a 'universal' solution to cellspacing in CSS.
That's what I would have thought.
In my CSS file I have:
TABLE
{
border: solid 0px Red;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
TR
{
border: solid 0px Blue;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
TD
{
border: solid 0px Lime;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
Yet, as you can see from the attached pic, the images do not sit next to each other.
I am forced to add cellpadding and cellspacing to the table directly in my ASPX page (code in front).
The border props are only there for testing. The tables and cells etc do take on all the properties from my style sheet, apart from the cellpaddingthing etc :(
WOka
You should be using floating div's for a menu control anway ;)
Anyway, those 'cells' could be easily duplicated with span tags with a style padding of 10px.
<span style="padding:5px;">Home</span><span style="padding:5px;">About Us</span><span style="padding:5px;">Products</span>
Showing posts with label cant. Show all posts
Showing posts with label cant. Show all posts
Saturday, March 31, 2012
Wednesday, March 28, 2012
tables and data
trying to populate a table with data from a mssql database, not quite sure
where to start
using asp.net and codebehind - cant seem to find any examples anywhere!Luna,
Check out: www.datagridgirl.com
She's placed many samples on her site.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"luna" <luna@.themoon.com> wrote in message
news:7hqYb.542$AQ4.336311@.newsfep2-win.server.ntli.net...
> trying to populate a table with data from a mssql database, not quite sure
> where to start
> using asp.net and codebehind - cant seem to find any examples anywhere!
Your post went unanswered. Have you resolved this issue?
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"luna" <luna@.themoon.com> wrote in message
news:7hqYb.542$AQ4.336311@.newsfep2-win.server.ntli.net...
> trying to populate a table with data from a mssql database, not quite sure
> where to start
> using asp.net and codebehind - cant seem to find any examples anywhere!
where to start
using asp.net and codebehind - cant seem to find any examples anywhere!Luna,
Check out: www.datagridgirl.com
She's placed many samples on her site.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"luna" <luna@.themoon.com> wrote in message
news:7hqYb.542$AQ4.336311@.newsfep2-win.server.ntli.net...
> trying to populate a table with data from a mssql database, not quite sure
> where to start
> using asp.net and codebehind - cant seem to find any examples anywhere!
Your post went unanswered. Have you resolved this issue?
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"luna" <luna@.themoon.com> wrote in message
news:7hqYb.542$AQ4.336311@.newsfep2-win.server.ntli.net...
> trying to populate a table with data from a mssql database, not quite sure
> where to start
> using asp.net and codebehind - cant seem to find any examples anywhere!
Subscribe to:
Posts (Atom)