locked
How do you highlight multiple sections and move it? RRS feed

  • Question

  • Wehther it's FrontPage or Word, it's customary to be able to simply click and drag over multiple paragraphs, then drag it somewhere else. For instance, I want to move some or all of the contents (multiple paragraphs) from a table cell to a section outside the table.

    That doesn't seem to work in Expression Web 2 or 3.  Any suggestions?
    Friday, August 7, 2009 12:15 PM

Answers

  • In EW ( or any html editor ) if you drag content you are going to drag the entire container
    and also create a style issue as the dragging operation will resize the container(s)

    To move text in EW between containers such as a tables and divs, you need to cut  from one and paste into another.

    If you copy from word, make sure you use Edit > Paste Text in order to strip out all of the word formatting

    FrontPage MVP
    Friday, August 7, 2009 12:36 PM
  • I actually discovered a setting that makes a huge difference here. If the Block Selection option is turned off, pieces of paragraphs can be selected and the way the mouse click/selections work consistently on the Design and Code panes.
    Wednesday, August 12, 2009 11:36 PM

All replies

  • In EW ( or any html editor ) if you drag content you are going to drag the entire container
    and also create a style issue as the dragging operation will resize the container(s)

    To move text in EW between containers such as a tables and divs, you need to cut  from one and paste into another.

    If you copy from word, make sure you use Edit > Paste Text in order to strip out all of the word formatting

    FrontPage MVP
    Friday, August 7, 2009 12:36 PM
  • Wow, this is very inconsistent and non-intuitive behavior compared to what people are used to in FP and Word.  Can you even use Shift-Click to highlight everything from the cursor to the new location?  Seems like quite a step backwards for someone who is accustomed to editing web pages from the WYSIWYG rather than the code.
    Friday, August 7, 2009 3:45 PM
  • Luke, get used to this: EW is not FrontPage, and it is certainly not Word. The kind of highlight-and-drag operation you're describing would result in tons of absolute positioning and program-generated styling that would be confusing and, as for the positioning, prone to breakage in cross-browser situations.

    To do what you want to do, I would create a target container, a div will work since the text is already in paragraphs, located where you want to place the text. Then, in Code View, highlight the paragraphs to be moved, then cut them and paste them into the target div.

    I tend to work in Code view anyway, but in this case there's another matter at play. I am unable to successfully select a group of paragraphs out of their container in Design View that doesn't include every paragraph in the container, as well as the container. Easily done, however, in code view.

    cheers,
    scott
    "If Sarah Palin looked like Golda Meir, would we even be talking about her today?" -- GOP strategist Mike Murphy
    Friday, August 7, 2009 4:12 PM
  • Sure you can shift-click to select sections. What's so hard or counter-intuitive about cutting and pasting?

    If you want to do all your web design in WYSIWYG, let me suggest you use iWeb on a Mac. It is very intuitive and creates pretty pages (albeit with a limited number of templates and limited modification). However, it tends to make pages that aren't very cross-browser friendly (but who needs anything other than Safari?), and the HTML is a bloated mess (but of course, if all you care about is WYSIWYG, this won't matter to you).

    It's your choice. If you want to create compliant, cross-browser sites, you will need to get into HTML and CSS, and do things a little different than in FP or Word. If not, EW probably isn't for you.

    Jim
    Friday, August 7, 2009 4:18 PM
  • Scott, in both EW 2 and 3 you can use multiple ways to select text in design view. I realize you don't work that way, but you could if you chose to. Many newcomers might not realize the options either.

    Of course, as stated above, you can shift-click to select a section. Also, if you triple-click anywhere in a paragraph it will select all the text in that paragraph, but not the tags. Even more useful to me, when you click in a paragraph (or heading, etc.) a tab appears at the top left identifying that element. If you click that tab, it selects the entire element including the tags. Once that is selected, you can control-click in other elements (including non-contiguous ones) to select them also. Once you have what you want selected, it is very easy to either cut or copy and paste where desired.

    Jim
    Friday, August 7, 2009 4:39 PM
  • Scott, in both EW 2 and 3 you can use multiple ways to select text in design view. I realize you don't work that way, but you could if you chose to. Many newcomers might not realize the options either.

    Of course, as stated above, you can shift-click to select a section. Also, if you triple-click anywhere in a paragraph it will select all the text in that paragraph, but not the tags. Even more useful to me, when you click in a paragraph (or heading, etc.) a tab appears at the top left identifying that element. If you click that tab, it selects the entire element including the tags. Once that is selected, you can control-click in other elements (including non-contiguous ones) to select them also. Once you have what you want selected, it is very easy to either cut or copy and paste where desired.

    Jim
    Yeah, you're right. I virtually never work in design view, so all that rigamarole isn't something I would normally encounter or worry about. I do know this, though: I can select and move or copy in code view at least as fast, if not faster, than the same operations in design view. And while doing so, I know precisely what I am grabbing and where I am pasting to, as well as what styling and positioning is being applied as a result. From my experience here, that can not always be said of those who habitually use WYSIWYG-only methods.

    cheers,
    scott
    "If Sarah Palin looked like Golda Meir, would we even be talking about her today?" -- GOP strategist Mike Murphy
    Friday, August 7, 2009 5:00 PM
  • iWeb on a Mac - yuck, I tried iWeb on my Mac just to see what sort of code it produced. On the PC maybe something like Coffee Cup's Web editor or Net Object Fusion (NOF is probably the closet to FrontPgae though it makes FrontPage code look good.)


    MS MVP Expression Tutorials & Help http://by-expression.com and online instructor led Expression Classes
    Friday, August 7, 2009 5:04 PM
  • Cheryl, I agree completely about iWeb. As a diehard Mac user it pains me to admit MS made a better app, but I tried iWeb briefly before deleting the (500+ MB!) mess from my hard drive. I was stunned when I viewed the steaming pile of code from just a simple page. Believe me, I don't recommend it for anything serious. I'll take EW any day, regardless of interface or counter-intuitiveness. My point was just that if you want totally WYSIWYG and ease of use, and aren't concerned with anything under the hood, it fits the bill.

    Jim
    Friday, August 7, 2009 5:51 PM
  • Cheryl, I agree completely about iWeb. As a diehard Mac user it pains me to admit MS made a better app, but I tried iWeb briefly before deleting the (500+ MB!) mess from my hard drive. I was stunned when I viewed the steaming pile of code from just a simple page. Believe me, I don't recommend it for anything serious. I'll take EW any day, regardless of interface or counter-intuitiveness. My point was just that if you want totally WYSIWYG and ease of use, and aren't concerned with anything under the hood, it fits the bill.

    Jim
    Hey, if that's all you're worried about, how about AOLPress http://www.daviestrek.com/software/aolpress/? It's free, WYSIWYG, produces steaming piles, and works on Windows or the Mac! What more could you ask?  ;-)

    cheers,
    scott

    "If Sarah Palin looked like Golda Meir, would we even be talking about her today?" -- GOP strategist Mike Murphy
    Friday, August 7, 2009 6:00 PM
  • Once upon a time AOLPress was one of the better html editors out there. I used it for several years but it wasn't a WYSIWG editor at the time I used it back in the mid 90s.
    MS MVP Expression Tutorials & Help http://by-expression.com and online instructor led Expression Classes
    Friday, August 7, 2009 6:33 PM
  • I've actually now realized that Shift-click does work, it just doesn't highlight what was selected so it's hard to tell.

    Cuting and pasting is fine, but it's not working when only the elements are needed and not the table/cell tags.  Moving contents out of a cell really shouldn't involve going into the code.

    As for the product overall, we were hoping that it would be an improvement over FrontPage to let our non-technical people update web pages (think of marketing people updating pages that are constrained by DWTs.).  Unfortunately, it's appearing to be quite a step backwards.

    Given that, is there a recommendation by Microsoft for an alternative platform that non-HTML coders can use to update pages created by HTML coders using EW or .NET?

    Luke

    Friday, August 7, 2009 11:06 PM
  • Wow, that is weird. Sorry, I missed the reference to a table in your first post. When you shift-click anywhere inside a cell it automatically selects everything in that cell and the tags. I have no idea why it doesn't highlight the selection, but it definitely doesn't. That really sucks.

    If you triple-click instead, it will select everything inside the tags (but not the tags) and highlight the selection. Other than click-and-drag, I'm not sure how you would only select part of the contents of a cell.

    If you are looking to have non-techies update pages created with EW, you definitely need a CMS. I don't know much about them, but others here sing the praises of one created by a regular on this forum. I believe it's called Content Seed. You should check it out. Good luck.

    Jim
    Saturday, August 8, 2009 12:29 AM
  • Luke:

    I use Content Seed (which Jim mentioned above). It's dead simple for marketing people to use--no more difficult than a word processor (yet, if necessary, you can change to code view and work that way too). It all works through the browser. And Chris has produced 20+ videos that users can use to refresh their skills.

    We have a number of clients using it (and one is using it with tables--to make a monthly calendar for a real estate office).

    You can try it out yourself at the Content Seed website (although I think the instructions and description are a little confusing for someone new to the system).

    http://www.phpseeds.com/generator/test/default.php

    Press Ctrl-Y to enter edit mode and use the username author and p/w author to get a sense of what your users will see.

    Saturday, August 8, 2009 4:08 PM
  • The step backwards, is that our non-techies were able to use FrontPage to make the changes they needed to make.  I wanted to be able to use the next evolution of FrontPage, thinking it would be EW, but the loss of some of these features and the change in behavior is making it a step bakwards.  Bummer. 

    We'll have to retrain for EW, try to use FP with the pages created on EW, or use another platform. No matter what, it's going to cost time and mistakes.  Thanks for your help.
    Sunday, August 9, 2009 6:08 PM
  • "... making it a step bakwards."

    All depends upon your point of view. To professional developers, EW is a giant step forward, making Microsoft a first-class player in the professional Web development space. That this meant leaving behind the proprietary, IE-centric, basically amateur orientation of FP does not disturb those who use the tool to create professional, standards-compliant, accessible markup. EW is not intended to be "... the next evolution of FrontPage," but rather an entirely new program which produces non-proprietary, standards compliant, cross-browser compatible markup, something that FP in its wildest dreams would be incapable of.

    Change is often diffcult to deal with, and new ways are often seen as worse than "the good ol' days." The thing is, FP is gone, for good, and you can either continue to try to use FP 2003 or you can bow up and take a new approach. The "mini" CMS ContentSeed that others have suggested would, it seems to me, address your requirements uniquely well. Rather than moan about the loss of FP, why not consider some of the constructive suggestions that have been offered?

    cheers,
    scott
    "If Sarah Palin looked like Golda Meir, would we even be talking about her today?" -- GOP strategist Mike Murphy
    Sunday, August 9, 2009 6:32 PM
  • Sorry, don't mean to come across as a whiner.  Just trying to understand how we can best use what we have and what we need to use in the future.

    I agree that EW is a big step forward for developers. 

    That said, many FP users were not high end developers, so EW isn't a step forward for that community. 

    Not being able to select pieces of items inside a table cell from the designer is a pretty significant productivity drain (everything we do is inside a table/cell) for users and developers, but the improved ability to handle the code pane is good.

    I would be happy to let my people continue to use FP. Unfortunately, a simple exercise where we asked a FP user to change the DWT for a page failed (we have dependent DWTs and when the user using FP selected the DWT to apply, it stored its DWT's parent rather than itself which is a huge problem).  Still trying to figure out if that's an EW or FP problem.

    Hoping to find a platform that supports the entire team. FP used to do so.  Now it looks like we'll need more than one platform, and that has a wide range of training/support implications.
    Sunday, August 9, 2009 8:04 PM
  • <quote>
    when the user using FP selected the DWT to apply, it stored its DWT's parent rather than itself 
    </quote>

    Are we talking about nested DWTs here?
    A DWT does not have a *parent* that I know of.

    Also, what sort of things can you not select inside a table cell in design view?



    FrontPage MVP
    Sunday, August 9, 2009 8:11 PM
  • Sorry, for using the wrong term.  Yes, I mean nested DWTs.  To explain it further, I created another thread to discuss the topic with explicit repro steps:

    Look under: Nested DWT's Created in EW are Not Being Applied Properly in FrontPage

    Thanks.

    As for inside the table cell from the Designer, I want to be able to highlight a few paragraphs and delete them, move them, etc.  Seems that I can only select all the objects in the cell.
    Sunday, August 9, 2009 8:38 PM
  • Why not use a modern CSS-based layout instead of a deprecated table-based layout? Then you won't have to worry about what you can select in a table cell, no?

    cheers,
    scott
    "If Sarah Palin looked like Golda Meir, would we even be talking about her today?" -- GOP strategist Mike Murphy
    Sunday, August 9, 2009 8:58 PM
  • Sorry, for using the wrong term.  Yes, I mean nested DWTs.

    EW does *Not*  support *Nested* DWTs.

    As for: As for inside the table cell from the Designer, I want to be able to highlight a few paragraphs and delete them, move them, etc.  Seems that I can only select all the objects in the cell.

    Click and drag the mouse to highlight what you want






    FrontPage MVP
    Sunday, August 9, 2009 9:26 PM
  • Luke,

    Expression Web is for designers not developers. Developers use Visual Studio or Visual Web Developer Express.

    Expression Web and FrontPage DWTs are exactly the same zo if zounxz like a user problem to me.
    MS MVP Expression Tutorials & Help http://by-expression.com and online instructor led Expression Classes
    Sunday, August 9, 2009 9:55 PM
  • You can't nest DWTs in FrontPage or Expression Web. Doing so is extremely unreliable even if it sort of works sometimes.

    Master Pages can be nested.
    MS MVP Expression Tutorials & Help http://by-expression.com and online instructor led Expression Classes
    Sunday, August 9, 2009 9:56 PM
  • Hi Scott,

    Not sure how to use CSS based layouts to manage the placement, rearrangement, and adding new sections to web pages. If you would point me to a reference, I would appreciate it.  I find CSS very cumbersome to use when it doesn't match up to syles specified in the tags already on the tables, cells, paragraphs, images, etc.

    As for getting rid of tables and cells, that's a pipe dream. In ther world of maintaining existing pages, tables are everywhere.

    Thanks for your help.

    Luke
    Tuesday, August 11, 2009 3:49 AM
  • I can't seem to click and drag the mouse to highlight what I want in EW3. Neither can I start at one point, and press Shift click on another and pick up just the text between the two points if it spans more than one paragraph.  Very different from FP and the way other Windows programs (Word, Outlook, Excel, Notepad, etc.) work. 

    It picks up entire paragraphs.  And when the text is inside cells, you can't see what's highlighted.  As for dragging it, that doesn't seem to work properly. The whole cell is moved when I only want a portion of it moved.  Can't seem to do that without going into the code.  Am I missing someting?

    Tuesday, August 11, 2009 3:52 AM
  • "I can't seem to click and drag the mouse to highlight what I want in EW3."

    I can.

    "Neither can I start at one point, and press Shift click on another and pick up just the text between the two points if it spans more than one paragraph."

    I can do this, although not inside a table cell.  When you shift-click to select inside a table cell, it assumes you mean to select the entire cell.

    "And when the text is inside cells, you can't see what's highlighted."

    If you drag the mouse, you can see it.  If you try to shift-click to select inside a table cell, it selects the entire table cell, which you can see highlighted in Code View.  But, unlike if you select the <td> tag directly, it does not show the highlighting in Design View.  That is strange.

    (This doesn't impact me since I only use tables for actual tabular data, which I need rarely, and not for layout.)
    Tuesday, August 11, 2009 4:40 AM
  • Hi Scott,

    Not sure how to use CSS based layouts to manage the placement, rearrangement, and adding new sections to web pages. If you would point me to a reference, I would appreciate it.  I find CSS very cumbersome to use when it doesn't match up to syles specified in the tags already on the tables, cells, paragraphs, images, etc.

    As for getting rid of tables and cells, that's a pipe dream. In ther world of maintaining existing pages, tables are everywhere.

    Thanks for your help.

    Luke
    Luke, I really wish I could tell you that there is a magic bullet, a single reference, example, or tutorial that I could point you to that would tell you what you need to know to move from deprecated, non-semantic, hard to maintain, search engine indexing-resistant table-based layout to modern, compliant, SEO-friendly CSS-based layout, but as much as I would like to do that I have to admit that there is no such beast.

    Basically, your layout will have to be re-created from scratch using containers and CSS. The good news is that this is much more straightforward than trying to re-create it using tables. Quite literally, once you know CSS and HTML, all you have to do is look at a layout and you can duplicate it, presuming you have access to the resources (images, etc.) used in the original. Lemme tell ya a story...

    I took a contract back in March to convert a site that was basically a slice-and-dice table-based layout, created in GoLive, and rewrite it using compliant markup and CSS. Originally it was a small contract, for the home page only, which is visually and structurally dissimilar from all of the other pages of the site, which the client referred to as the "inner pages," and which all shared a basic structure with one another, although still slice and dice table-based layouts.

    Anyway, I rebuilt the home page, without a single table anywhere in the markup, and using less than one-third the lines of markup the original had required. More importantly, the page loaded much faster, and the markup was both cleaner and easily readable, as well as being heavily commented so that the client would know which sections of the CSS file to address to modify various segments of the page in the future.

    As a result, more work has come from this client, and now not one single page of her site (formerly 100%GoLive-generated and table-based) uses tables for layout. I created a DWT for her for the "inner pages" which shared a common design, and now she happily creates and modifies pages in her site as it pleases her, instead of having to go back to her original designer for every little change, each of which had to be made and then regenned in GoLive and sent back to her.

    Here's the point I'm (finally, eh? ;-) trying to get across: There is nothing that you can create using tables that any competent Web developer cannot duplicate using compliant markup and CSS. The key factor is knowledge, and that, Luke, is something that you can't get from osmosis. No single reference will give it to you, and although you can learn an awful lot from reading here, none of us can instill it in you. You just need to start out with the basics and work at it.

    You don't have to change it all at once. You can work with practice sites and pages while you're learning, becoming comfortable with the technology, asking questions here, etc. When you feel ready, you can work with a single page of your current table-based site, working with it until it's right before going live. Then move on to the next. The truth is, "getting rid of tables and cells" is not only not a pipe dream, it's a piece of cake when you know how HTML and CSS work.

    Check out the 150 lessons in the w3schools HTML course to get a great start on what you need to know. Believe me, this stuff ain't rocket science, and you can handle it. But ya gotta start somewhere...   ;-)

    cheers,
    scott
    Tuesday, August 11, 2009 5:02 AM
  • I just do not understand the fixation with this. Is the staff really so incompetent that they can't learn this in an hour? You've asked them to change a DWT--editing text should not be a problem.

    Look, all programs are different, they do things differently and they handle their contents differently. There's stuff I can do in Word that I can't in Excel; I can't copy parts of two cells in Excel and move them together like I can paragrphs in Word. PowerPoint?--again different. Publisher?--more like PowerPoint than Word. I can't highlight parts of paragraphs in two text boxes in Publisher; big deal. C'mon. This is just whining for the sake of whining. Learn the tool and move on.

    I have never used the Design Pane to edit, and rarely tables, so I had to create a page to test this. In the page, I put a DIV, and in it I placed a 2x2 table, and put text in the cells--3 to 6 paragraphs in each. Then:
    I triple-clicked a paragraph and dragged it over to another cell. No problem, took the tags with it.
    Highlighted a one-sentence paragraph and dragged it into the middle of another paragraph in the same cell. No problem.
    Highlighted a paragraph and dragged it into the middle of another paragraph in the another cell. No problem.
    Highlighted all the contents of a cell (by clicking and dragging) and dragged it into an empty cell. No problem (although the open and closing paragraph tags didn't move).
    Highlighted, right-clicked and copied full and partial contents into new cells that I created in the design pane by right-clicking and inserting rows and columns.
    I could not highlight part of a paragraph and carry over into the beginning of the next--but I can't do that in Excel either.

    I just don't see what the big deal is. Unless you are working with the most appallingly stupid staff on the planet, this is a piece of cake. I did virtually everything I needed to do, all in the design pane (my first time ever trying this in design pane). On the other hand, I have worked with people who would grouse about learning anything new, but if they knew that their evaluation and raise depended on it they sang a different tune (well, slightly different).

    Shift-click? Nope. But if these people are that stupid, they probably can't tell shift-click from Shinola. Is it exactly like Word? Nope. Parts of it (mid-paragraph highlighting) act more like Excel (in the non-availability of that option).

    I just don't get what the big deal is. It's a little different. Adapt or die.

    Or use ContentSeed. It's foolproof.
    Tuesday, August 11, 2009 5:49 AM
  • A few years ago (Dec. 2006 to be more precise) I was standing chatting with Eric Meyers prior to at an event in San Francisco. Eric was the keynote speaker and while we we were talking a gentleman came up to Eric and said that he worked for [company removed but I'll say it is a name anyone working on computers would recognize with a very, very large web presence] said that they had converted their company website from a table based layout to a CSS based layout. Moving all presentation to external stylesheets. As a result thier bandwidth went down by 60% and they were able to take 23 servers out of their web farm.

    Okay, I doubt that your business would realize quite so much savings but I have never in all of the websites I've moved from tables to css realized less than a 30% decrease in file size (and that is on sites with heavy graphics where the images were already optimized). Moving the presentation layer, getting rid of <font> and inline formatting accounts for most of it but replacing table cells with a few carefully placed divs also accounts for some. With the presentation layer in the external stylesheet which is cached it really speeds up the loading of pages in the site after the first one. That's a large part of where the bandwidth savings comes from.

    Eric Meyers on CSS and More Eric Meyers on CSS are good books for those wanting to learn how to transition table based sites to CSS based sites and includes "transitional" design where a single table is used for base layout while the rest of the presentation is moved to CSS. This is a good intermediatary step for those who are migrating large sites with lots of legacy stuff.  Note, these are not complete beginner books because they do expect you to have a basic understanding of CSS properties and values but aren't really advanced either, sort of advanced beginner to intermediate.
    MS MVP Expression Tutorials & Help http://by-expression.com and online instructor led Expression Classes
    Tuesday, August 11, 2009 2:53 PM
  • I actually discovered a setting that makes a huge difference here. If the Block Selection option is turned off, pieces of paragraphs can be selected and the way the mouse click/selections work consistently on the Design and Code panes.
    Wednesday, August 12, 2009 11:36 PM