barski Posted November 17, 2003 Posted November 17, 2003 Can some one explain this? I have the following at the top of my page <table height="61" cellSpacing="0" cellPadding="0" width="100%" align="center" bgColor="#ffffff" background="graphics/ban_back.gif" border="0"> <tr> <td background="graphics/ban_back.gif"> <div align="center"> <IMG height="61" src="graphics/logo_ban.gif" width="760"> </div> </td> </tr> </table> and everthing looks great but one I insert the link to the stylesheet <link href="styles.css" type="text/css" rel="stylesheet"> It shoves the img down and it looks horrible. Quote
Administrators PlausiblyDamp Posted November 17, 2003 Administrators Posted November 17, 2003 what's in the style sheet? Anything that refers to elements in your page. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
barski Posted November 17, 2003 Author Posted November 17, 2003 A little bit of everything. Yes, there are reference to elements within the page Quote
Moderators Robby Posted November 17, 2003 Moderators Posted November 17, 2003 You can: Remove the Table and TD tags from the CSS or: Add a new Class attribute to each of your tags in your aspx page. (with or without its' elements in the CSS) In other words if you speficy a class that does not exist in the CSS then no harm the existing tags will not be altered. Quote Visit...Bassic Software
barski Posted November 18, 2003 Author Posted November 18, 2003 Well I spoke too soon. It did fix my original problem but if the page contains a crystal viewer it does the same thing I mentioned before even if there's not a stylesheet linked. Quote
Moderators Robby Posted November 18, 2003 Moderators Posted November 18, 2003 The default sheet created for each asp project may not be suitable for everyone. You should really remove all the generic style that you don't use from the styles.css and only keep the one you intent on using. Quote Visit...Bassic Software
Muhad Posted November 20, 2003 Posted November 20, 2003 I just drag the style.css to the form I want it on; all is find then. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.