|
-
Sep 7th, 2004, 04:13 PM
#1
ASP.NET and stylesheets...easy question
My web app by default has a style sheet called Style.css
I added the following to this:
Code:
.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:
Code:
<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?
-
Sep 7th, 2004, 04:35 PM
#2
Not sure...never used tables that much....they are soooo 90s.. .
but try with
Code:
<td class="CaptionStyle">
WOKAWIDGET
</td>
-
Sep 7th, 2004, 04:39 PM
#3
Yup...that is correct.
But you also need:
Code:
<LINK href="Styles.css" type="text/css" rel="stylesheet">
At the top of the html page!

Woof
-
Sep 7th, 2004, 04:42 PM
#4
So correct... .....
-
Sep 7th, 2004, 05:43 PM
#5
I wonder how many charact
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!
-
Sep 8th, 2004, 01:21 AM
#6
You'll get the hang of it. Once you use it lots, it becomes as easy as eating badger-flatmeat.
-
Sep 8th, 2004, 11:38 AM
#7
PowerPoster
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.
-
Sep 8th, 2004, 11:42 AM
#8
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... ....
-
Sep 8th, 2004, 12:54 PM
#9
PowerPoster
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.
-
Sep 8th, 2004, 11:41 PM
#10
Notepad can't even compile my HTML files.
-
Sep 13th, 2004, 03:36 PM
#11
Banned
Originally posted by mendhak
Notepad can't even compile my HTML files.
Can someone point me to the spellchecker in notepad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|