insert div around another tag area

TopStyle has been discontinued and support is no longer available. The forum is read-only. NOTE: TopStyle was not developed by the makers of CSS HTML Validator.
Locked
lionelts
Rank III - Intermediate
Posts: 62
Joined: Sun Jul 29, 2012 2:18 pm

insert div around another tag area

Post by lionelts »

during design we need sometime to add some div around some others div ( image label using ltrb =>left top right bottom ) .
it ll be nice to be able to select at first a box and then another box bigger that the selected one or add insert a div tag around the selected box .

For example see the image. the cursor is inside a html tag ; choose select box ll higligh p ( id=p3 begin and end). then reselect " select box item) will select another div (id=p2).
then reselct select box ll select div ( id=p0). then select insert div ll insert div ( <div> in the beginning of the selected area and </div> in the head of arera ) .

could this feature ll be usefull ?
Attachments
Untitled-1.jpg
Untitled-1.jpg (194.22 KiB) Viewed 5435 times
User avatar
TopStyle Support
Rank VI - Professional
Posts: 506
Joined: Sat Jun 13, 2009 12:38 pm
Contact:

Re: insert div around another tag area

Post by TopStyle Support »

TopStyle 5 supports all of this.

The 1st feature you're asking for ("select parent HTML tag") is available in TopStyle 5 when you press: Ctrl+[

The 2nd feature you're asking for ("wrap HTML tag") is available in TopStyle 5 when you click: Edit > Wrap HTML Tag
Locked