Results 1 to 11 of 11

Thread: ASP.NET and stylesheets...easy question

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    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?

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Not sure...never used tables that much....they are soooo 90s...

    but try with

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

  3. #3

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    So correct........

  5. #5
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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!

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    You'll get the hang of it. Once you use it lots, it becomes as easy as eating badger-flatmeat.

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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.......

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Notepad can't even compile my HTML files.

  11. #11
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    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
  •  



Click Here to Expand Forum to Full Width