.NET Framework - Styles

Asked By KenP
14-Feb-10 10:57 AM
When I first rec'd Expression Web and read up on it, I somewhat understood
the STYLES and DWT's but not well enuf to apply them in the timeframe
required to get the web site up and running. Therefore I did a few things a
little screwy--i think. I am probably at the point where I need to
reread/reread STYLES/DWT's and clean up my act. In meantime, my web page is
full of STYLES in the page HEAD section to include STYLES embedded in the
BODY of the web page due to copying and pasting text from various sources
into the web page. Page is http://www.bladenonline.com.

While I am rereading/rereading the STYLES/DWT section of the manual I
purchased, is there a way to clean up the web page as is? It appears that
when I paste in text and then delete the text the formating is inserted and
deleted from the BODY of the web page. However, the STYLE section added to
the HEAD section of the web page is not deleted.

Is there a way to clean up the web page as is while I try to figure STYLES
and the DWT out?

Any help will be greatly appreciated.

KenP
Expression Web
(1)
Word
(1)
Thatcher
(1)
Margaret
(1)
Mandela
(1)
Symonds
(1)
Kingdom
(1)
Nelson
(1)
  KenP replied to KenP
14-Feb-10 11:04 AM
Also, if I am constantly copying and pasting text from emails and Word docs,
etc. am I going to be able to stay w/n the STYLES parameters or am I going to
always have issues with STYLES. On the web page ID'ed below, my STYLES go up
to Styles1119 now.
  Ronx replied to KenP
14-Feb-10 11:30 AM
You have little chance of cleaning this up, unless you know what style137
does and where it is called. And the same with the other 1118 styles.

If you copy and paste from emails and Word, the result will be a mess,
guaranteed.  When copying from other applications remove the styling first
(paste into NotePad is the easiest way, or use Edit->Paste Text in
Expression Web.  Then apply already existing styles to the pasted text.

The best way of going forward is to go back - remove all the formatting and
then apply what you NEED to suit your page.  Give each style a unique name
that describes what it is for - out of those 1119 styles you have defined,
how many are duplicated?  How many are actually used?

I suggest reading the resources detailed at the link below, especially the
section on
Learning Resources and Reference Sites:
http://social.expression.microsoft.com/Forums/en-US/web/thread/99c95aee-bfe6-4c4d-80d4-8d197194a942

Also look at
http://any-expression.com/expression-web/ebooks/expression-web-dwt-ebook.htm

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
  KenP replied to Ronx
15-Feb-10 06:38 AM
Is there a way to turn styles off?
  20100215 replied to KenP
15-Feb-10 07:52 AM
I have just looked at your site and the source code of your webpage.  I have
noticed that you have 100s of styles all over the place and also, you have
used a table based web design.

The problem of hard wired styles within the webpage is that it is very
difficult to maintain.  However, everything is not lost.  I will suggest a
tutorial which takes you step by step to convert a table based website to
CSS based website.

http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt1.html

Although the tutorial is based on DW, the concept is no different from EW.
The above link is for part 1 but there are many parts to it and you will
find all the links in the article.

Let me know if it is going to help you.
  Ronx replied to KenP
15-Feb-10 08:43 AM
Expression Web is designed to produce cross browser, standards compliant web
pages. This means using CSS (styles) and not deprecated tags and attributes
such as <font>.
Text pasted from Word and similar applications will always contain styles
(usually aimed at printed output rather than web pages) that can only be
easily removed at the time the text is pasted - either by using Paste Text
only, or pasting via Notepad.
The only answer for your existing page is to remove all the formatting and
start over.

Take a look at the Basic Web Site tutorial at
http://by-expression.com/content/tutorials.aspx   it will help.
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
  senn replied to 20100215
15-Feb-10 09:15 AM
Apparently you are telling the OP that he cannot use a table based
website working together with CSS. If I read you right then you talk
rubbish. A table based website working with CSS can be designed
to validate just as easy as a div/CSS based website.
  Patricia Geary replied to KenP
15-Feb-10 03:50 PM
If we could only convince folks to understand, it really is so much easier
to take the time to learn how to do it correctly first rather than wait
until later when it has grown into a monstrous project.

Cheryl's videoes are a great place to start learning how to use the program.
Tina's free ebooks will teach you how to set up the program and the dwt book
will give you a start on learning how to use them. If you create the basic
look that you want using a dwt and the external style sheet you can then add
the styles to the external sheet as you go along. Work in split view so you
can see what is happening when you use the formatting tool bar to apply your
styles. In fact my advice is to turn off the formatting toolbar - forget it
si there.

Think about how you want a section or item to look and create a style for
it. Then resuse that style. If a style is created for you, think if you
really need that new style or is there already one that will work? If it is
one you need, rename it immediatley to something that will make snese to you
in a day, a week, or a year. Don't use something like .greentext as you may
want to change it to redtext one day.

I can tell you from having cleaned up sites, it is much easier to do it
correctly the first time around than clean up the mess later. You also need
to spend some time learning css to make it easier to work with Expression
Web.

pat
  Tina Clarke replied to KenP
15-Feb-10 06:10 PM
First read and implement this

Free Setting up Expression Web Ebook
http://any-expression.com/expression-web/ebooks/setting-up-expression-web-ebook.htm

what version of ew are you using btw?
Is there a reason for having so much content on the homepage? its rather
busy and its overwhelming.
are you colour blind in anyway? You have blues and yellows and greens
together which are clashing plus a lot of blue text which is the typical
exact blue used for hyperlinks
is your readership all non glasses wearing? I wear glasses and find it hard
to see that rather small text.

You can use a table with css yes... but its better to use as much divs as
you can to reduce the page load... specially when you have a lot of
graphics. Your layout does not really need to use a table for the most part.
Suggest you take a look at our free site templates which provide you with a
basic layout there are 12 to choose from
http://www.frontpage-to-expression.com/site-templates/

What you need to do here is to make a new template .. that works well and
validates .. and the least amount of page load you can manage.Make it a dwt
and use the css for the formatting within the sheet not embedded or inline.

the 2 column right site template (they are dwts that work from within
expression web itself just follow the instructions)

.you need to understand how to move from word files to html files... and how
to bring across content... if YOU work on new content then you type it in ew
NOT word.. if other people send you content ... ask them where possible to
send a .txt file ... or a .html file .. and no formatting. If you have to
work with word files then use paste text
http://any-expression.com/expression-web/tutorials/clean-code-on-paste.htm
(not added ew3 menu placements yet but its near enough it was written for
ew2) and or other forms of cleaning the code and retaining hyperlinks ..
there is a lot of word code hanging about there.

You need a new well code dwt ... and to implement some best practices in the
way that you do things and you need to clean your current content .. all
doable... the best time to makeover a site is always right now before it
gets any bigger.

those ads do not need to be that big and you should make your advertisers
have them conform to a standard sizing and layout ... so they will look
better on the page.
Your css is so contradictory its not proving of any help at all to you... it
supposed to save you time...

Yes learn css .. but I learnt most of my css with a combination of topstyle
lite and the pro and fp03 and the css interface within it..... so ew's css
properties will have much the same effect... also look at good working
examples and follow from there.. I wrote this for FrontPage 2003 but it
might have some impact on you if you have used FrontPage
http://accessfp.net/frontpage-2003/tutorials/information-about-css.htm
http://accessfp.net/frontpage-2003/tutorials/creating-css.htm

to learn more about dwts...(I am currently re writing it for ew3.0)

Expression Web Dynamic Web Templates Ebook
http://any-expression.com/expression-web/ebooks/expression-web-dwt-ebook.htm

Best practices .. (once you have a clean site) is to ...

turn off the formatting and common toolbar.. this way you will not be tempted
willy nilly to implement styles .. when you do have to turn it on to do
something you will be noticing what you are doing and seeing if a style is
generated... if you have to go the common or formatting toolbar chances are
you already have a style in place and you need to use the apply pane/panel
to implement it instead.
  20100216 replied to senn
16-Feb-10 10:29 AM
I have said nothing of that sort.  Your comprehension of the English
language remains much to be desired.  I was simply indicating to the OP that
he has hard wired the styles within the webpage itself and although it has
worked so far, maintenance of it becomes virtually impossible.  Therefore,
as he needs to start from scratch, he would be wise to learn today's Web
standards, sophisticated CSS design capabilities, and impressive visual
diagnostic tools as provided by EW and DW.

Whether someone is talking rubbish or not  is always a subjective judgement.
Margaret Thatcher, ex Prime Minister of United Kingdom, always maintained
that Nelson Mandela was a terrorist but now we have come to accept him as
one of the most prominent leaders in this world.  everybody wants to be with
this 92 year young man and to be photographed.  Time is certainly part of a
healing process in everything it seems.

hth
  senn replied to 20100216
16-Feb-10 02:15 PM
Not that much. Or you woundn't be able to read me.
Below in the quotation marks is a copy of what you said:

tutorial which takes you step by step to convert a table based website to
CSS based website."

And one more copy of same:

Apparently, you do not know what you are talking about !.
You're talking *Rubbish* !.
Let's see your website ?.
/senn
Create New Account
help
open to 1-3 books if they are relevant to what I need to learn. Expression Web Designer Discussions SharePoint Designer 2007 (1) Expression Web (1) HTMLand (1) MostRecentReview (1) FronPage (1) Disclaimers (1) Toolbar (1) Chesire (1) The best your case, I think, the best reference would be www.w3schools.com where most of web design technique can be found. If not anything, then google it. It sounds as though you are an obvious reader to Tina's: Migrating from FrontPage to Expression Web Ebook v2.0 New version includes help for EW 3.0 Find out how to transition from fp to ew with ease http: / / www.frontpage-to-expression.com / ebook.html Ugg! Disclaimers are unpleasant enough but "shouting them" takes the biscuit. - - Dave
I find my license or registration number to prove I am the legitimate owner? Earl Expression Web Designer Discussions Ron Symonds Microsoft MVP Expression Web (1) ESET NOD32 Antivirus (1) Windows XP (1) Expression Web (1) Windows 7 (1) Vista (1) Kathleen Anderson (1) Belarc Advisor (1) Write key finder se Belarc Advisor should work: http: / / www.belarc.com / free_download.html - - ~ Kathleen Anderson Microsoft MVP - Expression Web Spider Web Woman Designs Expression Web Resources: http: / / www.spiderwebwoman.com / xweb / Expression Web Wiki
regular expression NxM .NET Framework Hi, I am using following regular expression to validate picture size take as input (either an integer or NxM where N and M are integers). ( \ d+) | ( \ d+ \ s*[Xx] \ s* \ d+) This regular expression is working fine in perl as intended but not in dot net. Please tell me work for you? It works fine for me. Assuming you are actually using literally that expression, the only thing that comes to mind is incorrect escaping of the backslash character. But not be hard to fix by oneself. See below for a short example of your expression in a concise-but-complete code example that works correctly for me. If the problem Success ? "valid" : "INVALID"); } } } } s* \ d+)"); }", strInput, Thanks you for your response. I was using that expression in RegularExpressionValidator for asp.net page, as it is. It appears regular expression OR " | " operator does not work in RegularExpressionValidator control. So I changed the regular expression to following equivalent: \ d+([Xx] \ d+)? Thanks you. Regards, Anees Haider Hi Anees, At first
Word tables .NET Framework One of my clients sends me tables done in MSWord. http: / / cuc way I will keep on doing what I am doing now. - - Bert Christensen, Toronto, Ontario web: http: / / bertc.com mediocrity at bay" - Van Morrison Expression Web Designer Discussions Expression Web (1) Word 2003 (1) Word (1) FronPage (1) Morrison (1) Toronto (1) Ontario (1) Toolbar (1) If you have a
Create Expression from Func? (3.5 SP1) .NET Framework Hello: Is there are way to create an Expression from a Func? I do not like cluttering up my method signatures with the whole Expression<Func<TResult, T> > type. I would prefer for callers to simply see Func<TResult, T instead. I'd like to take a Func and create an Expression from it. Is that possible? Thanks, Travis Parks C# Discussions System.Reflection.MethodInfo (1) ArgumentNullException from the delegate instance in question. With those objects in hand, you can create an Expression instance that accomplishes the same thing. Pete I am asking whether you can create an Expression from a Func. I do not want the signature of my method to show Expresion I want it to show the Func<. . .> . I would then have to manufacture the Expression<. . .> inside the method. Could you show me this? Now, remember, it is important that the generated Expression<. . .> provide the same information that I would get from the parameter. In my scenario, I