Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Can someone help me (a Newbie)?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shelly - 31 Aug 2007 18:53 GMT
I was hoping to get some answers to my previous post where I asked:

1 - How do I specify the style sheet?  The CssClass value is not defined is
the message I get.
2 - It doesn't recognize <embed>.  I have a Flash stuff at the top.
3 - Answered.
4 - It says that "background" is invalid in <td>.  Since I point to an image
file, which appears in the browser by the way, what is the proper one to
use?  Obviously, it must be getting it because when I test it, the image
appears.
5 - It say that "img" requires the "alt" tag.  I currently don't have one.
What should I use?  (and what should I put in as the value?)
6 - It also says that bgcolor is outdated.  Again, what is the replacement?
Is it part of the style declaration?
Is there somewhere that you can point me to find out what all the
replacements are and their syntax?
7 - Ditto for "align" in <div>

Thanks.

Shelly
Andreas Kraus - 31 Aug 2007 19:38 GMT
Hi Shelly,

1) Then you didnt specifiy a CssClass in your .css, double check if it exists.
4) Where did you set the background? It's always better to use CSS for it,
although, those are just W3C guidelines, you don't have to follow them but
should.
5) The alt tag describes the image, for a tree image you would use alt="tree"
6) background-color: #00000 in the CSS file is the proper W3C suggestion.
7) Define it via CSS

You should crawl through the web for some W3C standards and definitions. You
don't have to follow all that stuff but it's recommended for cross browser
compability.

hth,
Andreas
Signature

More on ASP.NET and Silverlight on my blog: http://www.andreas-kraus.net/blog

> I was hoping to get some answers to my previous post where I asked:
>
[quoted text clipped - 17 lines]
>
> Shelly
mark4asp - 31 Aug 2007 22:12 GMT
>I was hoping to get some answers to my previous post where I asked:
>
[quoted text clipped - 17 lines]
>
>Shelly

Shelly, Please don't use HTML attributes when you can specify layout
properties in styles or classes. Modern HTML coders try to put all
layout information into a class. There are very few attributes which
can't be replaced by styles.

Did you notice that at the top of your page there's a DOCTYPE?  The
DOCTYPE defines the standard (HTML validation rules) you're working
with. You can relax the DOCTYPE but you are actually better off with a
strict variant rather than a transitional one. Sure a transitional will
give you more freedom but there's a cost. Browsers are much more likely
to display the page with slight (sometimes big) differences. So I always
specify HTML 4.01 strict for my DOCTYPE because: a) different browsers
all display the pages the same way when my HTML is valid and b) it's the
least strict you can be.  (IE6 doesn't understand XHTML strict).

1. A style sheet is a text file ending with the extentsion .css  Read up
on how to write style sheets or post you message to the html style sheet
forum: news:comp.infosystems.www.authoring.stylesheets
2. Honestly don't know
4. Use a style
5. Just add alt="" to all your images if you don't want to actually put
any information text in there.
6. Yes there's a replacement for bgcolor - use the corresponding style.
7. Use a style
Alan Silver - 03 Sep 2007 14:20 GMT
>I was hoping to get some answers to my previous post where I asked:

Actually you did get answers. The basis of those answers was, like the
latest ones here, that you need to understand CSS and web standards
better. I also gave you some detailed and specific answers to each of
the questions you raised.

Please understand that people here will help you, but only if you read
and accept the replies. You had quite a few replies, and yet still
reposted the same questions in an entirely new thread.

Also, these questions are nothing to with ASP.NET, they are CSS
questions, and as such should be asked in a CSS newsgroup, such as
comp.inforsystems.www.authoring.stylesheets (do a Google search for the
exact name)

Finally, all the answers you wanted could have been found with some
searching. They are all fairly standard basic HTML and CSS issues, and
are covered in many places on the web and in newsgroups.

This is not a flame, it's a genuine piece of advice intended to help you
get the answers you want.

Signature

Alan Silver
(anything added below this line is nothing to do with me)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.