CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2008_express Tags:
Item Type: NewsGroup Date Entered: 4/4/2008 2:25:08 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 59 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
plalmeida
Asp.Net User
<br> versus <p> inside div elements4/4/2008 2:25:08 PM

0/0

Hi,

When one creates a new Web Form / Web Wage in Visual Web Developer, besides the form element, a div element is also created. If you put the cursor inside this div element and press Enter/Return it creates a <br> element, not a <p> element. Is there any way to change this behaviour or is there any way to convert the <br> to <p> in Design view?

A <br> should only br created when you hit Shift+Enter. When you hit Enter a paragraph should always be created.

TIA

Paulo Almeida

plalmeida
Asp.Net User
Re: <br> versus <p> inside div elements4/4/2008 3:36:43 PM

0/0

Before somebody tells me, I know I can convert a <br> to a <p> by selecting the text line and then selecting the Paragraph <p> option on the Formatting toolbar.

But if I have a list of text lines separated by <br>, if I select all the lines and then select the Paragraph <p> option on the Formatting toolbar I only get one paragraph. I then must select each line one by one and apply this procedure, but this is tiresome.

Paulo Almeida

Mikhail Arkhipo
Asp.Net User
Re: <br> versus <p> inside div elements4/4/2008 3:59:03 PM

0/0

Designer creates BR if you are in a DIV, but it will create P on Enter if caret is in a P element. Most browsers render paragraphs with additional lines between them and designer tried to avoid this. This forum editor, for example, inserts P so typing dense lists is impossible, typing list (as opposed to use toolbar button in this forum) looks like this:

1. Item #1

2. Item #2

3. Item #3.

While most people will want

  1. Item #1
  2. Item #2
  3. Item #3.

Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
plalmeida
Asp.Net User
Re: <br> versus <p> inside div elements4/4/2008 7:41:25 PM

0/0

Mikhail,

Thank you for your answer. 

So, there is no way to force the designer to use paragraphs (<p>) instead of breaks (<br>) inside a div element.

That way, if I want to use paragraphs inside a div element I must write some text (a letter is enough), convert it to a paragraph using the Formatting toolbar "Paragraph <p>" option and from then on I will have the paragraphs inside the div element.

IMHO VWD should have an option to turn this behavior on/off because, most of the time, it's bad web design to use breaks instead of paragraphs. At least that is what the web design experts say.

Paulo Almeida

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Integrated HTML and CSS: A Smarter, Faster Way to Learn Authors: Virginia DeBolt, Pages: 377, Published: 2005

Web:

versus

inside div elements - ASP.NET Forums Re:
versus

inside div elements. 04-04-2008, 11:36 AM. Contact ... Re: < br> versus

inside div elements. 04-04-2008, 11:59 AM ...
HTMLHelp Forums >
vs

as text block separators (If I forget about the BR and stick with P elements) I could let the script .... In fact all the editable content will be inside a DIV, ...
Block vs. Inline, Part 1 @ The Autistic Cuckoo For visual media as Tommy explained block elements tend to leave a space after them like with:

paragraph,

division,

headings
line ...
Applying a class to everything inside a
Jul 18, 2007 ...
i want this to be red - it's red

i want this to be ... to the p -- you're applying it to the containing element (div or ...
'RE: XML Schema API vs. Eclipse XSD' - MARC Eclipse \ XSD

\
Joan Jett VS. Pat Benatar, Am I Wrong, Where Pop Culture Meets ... Reachin out with both hands, I gotta feel the kick inside

< br>Summary of Core XHTML Feb 22, 2008 ... body elements. Block vs. inline elements. Simple Blocks: h1 to h6, div, p, pre, br. Lists: ul, li, ol. Tables: table, tr, td ...
Computer Power User Article - Coder’s Corner: XML ELEMENT br EMPTY > means that br elements are always empty. ... ELEMENT section ( h2, (div | p) ) > means that a section must contain an h2 element, ...
htmlArea.com discussion forums: htmlArea 2 & 3 archive (read only ... Re: [jaypee]
vs

. Solution for both ie and moz. .... although that was used to go from

to

. Every line is in the CMS here a div. ...
HTML vs XHTML

non-container use ... However, the rules around block-level elements vs inline elements take a little while to ...





Search This Site:










validatepath module installation

encrypt/decrypt strings

login tool not processing

asp:login layouttemplate

catch automatic login

desactivate the password rules in asp membership

custom authentication over multiple applications

consuming my webservice in a windows application give denied acces!

timezone for aspnet_users.lastactivitydate?

credentials in windows aurthrntication

using impersonation for directory security

authentication problem

problem using impersonation in win xp pro sp1

how to get username from the windows login

user login retrieval while using impersonation?

getting additonal informatin into the membershipprovider

using ssl and asp.net

profile, connection string,providers ,sitecounters, web.config in asp.net beta2.0

setting response.statuscode in an httpmodule not working as expected

cryptographic service provider (csp) could not be found for this algorithm.

ip adress or copmputer name logged user?

membership, roles and profiles

password recovery control

password recovery with smtp.gmail.com

what are the 'real world' security advantages of the .net framework and the jvm?

accessing a control within a loginview

forms authentication: where is the cookie stored?

sql injection and single quote escapes

roleprovider not allowing me to access my code

authentication issue

  Privacy | Contact Us
All Times Are GMT