PDA

Click to See Complete Forum and Search --> : ASP.NET and stylesheets...easy question


Wokawidget
Sep 7th, 2004, 04:13 PM
My web app by default has a style sheet called Style.css

I added the following to this:

.CaptionStyle
{
border-right: slateblue 1px solid;
border-top: slateblue 1px solid;
border-left: slateblue 1px solid;
color: whitesmoke;
border-bottom: slateblue 1px solid;
font-family: 'Arial Black';
background-color: darkslateblue;
text-align: left;
}

Now the HTML for my ASP page is:

<body bgColor="#99ccff" MS_POSITIONING="GridLayout">
<form id="Login" method="post" runat="server">
<table height="100%" width="100%" border="0">
<tr vAlign="middle" align="center">
<td>
<table height="300" width="500">
<tr height="25">
<td>
WOKAWIDGET
</td>
</tr>
<tr>
<td>
<table width="100%" height="100">
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>

yes, I know, very bare and empty :(
working from the bottom up.

Now say I wanted the cell with the word WOKAWIDGET in it to have my .CaptionStyle style, how would I do this?

Woof?

NoteMe
Sep 7th, 2004, 04:35 PM
Not sure...never used tables that much....they are soooo 90s..:D.

but try with


<td class="CaptionStyle">
WOKAWIDGET
</td>

Wokawidget
Sep 7th, 2004, 04:39 PM
Yup...that is correct.

But you also need:

<LINK href="Styles.css" type="text/css" rel="stylesheet">

At the top of the html page!

:D

Woof

NoteMe
Sep 7th, 2004, 04:42 PM
So correct...:D.....

nemaroller
Sep 7th, 2004, 05:43 PM
I know I'm going to get lambasted for this...

but its hard to forgo tables and still keep a nice layout for screen resolutions varying between 800 and 1024...

We still have quite a table structure skeleton, with style tag innards.

I'm quite sick of it too! :(

mendhak
Sep 8th, 2004, 01:21 AM
You'll get the hang of it. Once you use it lots, it becomes as easy as eating badger-flatmeat.

hellswraith
Sep 8th, 2004, 11:38 AM
Did you know that you can drag your stylesheet from solution explorer on to your web page, and VS will add that LINK tag for you. Its the little things that impress me...lol.

NoteMe
Sep 8th, 2004, 11:42 AM
Originally posted by hellswraith
Did you know that you can drag your stylesheet from solution explorer on to your web page, and VS will add that LINK tag for you. Its the little things that impress me...lol.

I tried to drag it from NotePad, but nothing happend...:(....:D

hellswraith
Sep 8th, 2004, 12:54 PM
Keep trying, it will work after the 100th time. If not, repeat until it does. I know that this work around sucks, but it is the price you pay for using an obviously flawed application such as Notepad. :D

mendhak
Sep 8th, 2004, 11:41 PM
Notepad can't even compile my HTML files. :mad:

jhermiz
Sep 13th, 2004, 03:36 PM
Originally posted by mendhak
Notepad can't even compile my HTML files. :mad:

Can someone point me to the spellchecker in notepad :D