Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dpaanlka

macrumors 601
Original poster
Nov 16, 2004
4,869
34
Illinois
Is there any way to get dreamweaver to stop putting all of my content within <p> tags, and just use <br> for line breaks?

EDIT: Look at this page http://main.system7today.com/hardware/2300c.html and notice where it says "The Apple powerbook duo is blah blah blah...." - that block of text does not line up with the top of hte PowerBook Duo image because it's within a fracking <p> tag. Why is this? What am I missing?
 
I believe , and I might be wrong, but the trick is to use Shift + Enter(Return) key for </br> (break) tag; instead of using just Enter (Return) for <p>

Sorry this is will not solve the problem :(
 
dpaanlka said:
Is there any way to get dreamweaver to stop putting all of my content within <p> tags, and just use <br> for line breaks?

Look at this page http://main.system7today.com/hardware/2300c.html and notice where it says "The Apple powerbook duo is blah blah blah...." - that block of text does not line up with the top of hte PowerBook Duo image because it's within a fracking <p> tag. Why is this? What am I missing?
Looked at your sorce there is no <p> tag around the in question text. And if you removed it, it obviously wasn't the cause.

EDIT: I've never done anything but split view and code in the code window. the other view is just to make sure my changes make sense.
 
jared_kipe said:
EDIT: I've never done anything but split view and code in the code window. the other view is just to make sure my changes make sense.

Ditto, dreamweaver makes building sites much easier, but you gotta keep a close eye on what's it doing with the code.
 
jared_kipe said:
Looked at your sorce there is no <p> tag around the in question text. And if you removed it, it obviously wasn't the cause.

It's definetely there, and it's definetely the problem because when I remove it, the problem goes away. But it's weird because I don't remember <p> tags giving me such trouble ever before. Every browser seems to want to add that extra space now for some reason.

<p><font size="3" face="Times New Roman, Times, serif">The Apple PowerBook Duo 2300c/100 features a 100 MHz PowerPC 603e processor, 8 MB or 20 MB of RAM, and either a 750 MB or 1.1 GB hard drive in a lightweight portable case with a sharp 9.5" color active-matrix display. The PowerBook Duo 2300c/100 was the last of the Duo series, and was the fastest. More recent lightweight PowerBooks include the PowerBook 2400c/180. The PowerBook Duo series provides both a portable computer and the option to set up a full-powered desktop Macintosh with a compatible Duo Dock.</font></p>​

My site is huge and I would really rather not have to manually edit out every <p> tag in dozens of pages.
 
I guess I'll just remap the key combo for a line break to be simply Return instead of Shift+Return
 
This is what shows up when I look at it
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" valign="top"><img src="../images/hardwareguide/apple_powerbook_duo2300c.gif" width="150" height="134" hspace="25" vspace="0" /></td>
<td width="95%" valign="top">The Apple PowerBook Duo 2300c/100 features a 100 MHz PowerPC 603e processor, 8 MB or 20 MB of RAM, and either a 750 MB or 1.1 GB hard drive in a lightweight portable case with a sharp 9.5" color active-matrix display. The PowerBook Duo 2300c/100 was the last of the Duo series, and was the fastest. More recent lightweight PowerBooks include the PowerBook 2400c/180. The PowerBook Duo series provides both a portable computer and the option to set up a full-powered desktop Macintosh with a compatible Duo Dock.<br />
<br />
<b>From the Webmaster:<br />
</b>The Duos have always been one of my favorite computers of all time. I have owned four, as well as several docks and many peripherals. To squeeze the most performance out of a 2300c, be sure to install LibMoto<font size="3" face="Times New Roman, Times, serif">, SpeedDoubler 8, and all of the other updates </font> from the <a href="../updates.html">Software Updates</a> page.</td>
</tr>
 
Yeah, i have since remapped that one keyboard shortcut, and changed the page accordingly.
 
dpaanlka said:
Yeah, i have since remapped that one keyboard shortcut, and changed the page accordingly.
Thats what I figured, but thats how it has been since I posted way back in the beginning.
 
Looking at your code, maybe you should stop using inline styles while you are at it.

This isn't meant as a put-down; you mentioned that your site is pretty huge and I cannot imagine managing a site with inline styles. I'd recommend looking into an external CSS file to handle your styling needs.
 
Dreamweaver does nothing more than was Work and AppleWorks does. By pressing return, you are creating a new paragraph. You must press shift+return to get a new line.

TEG
 
zarathustra said:
I'd recommend looking into an external CSS file to handle your styling needs.

Which would be entirely inappropriate given the subject matter of the site. And I wouldn't know how to do that in Dreamweaver anyway, and I don't feel like hand-coding every single page.

TEG said:
Dreamweaver does nothing more than was Work and AppleWorks does. By pressing return, you are creating a new paragraph. You must press shift+return to get a new line.

Yes... we already covered that days ago.
 
dpaanlka said:
Which would be entirely inappropriate given the subject matter of the site. And I wouldn't know how to do that in Dreamweaver anyway, and I don't feel like hand-coding every single page.

Huh? How would using external CSS be inappropriate based on subject matter? The point of CSS is not having to handcode every single page, just applying styles; but I guess if you don't know how to do it in Dreamweaver, all this is a moot point.

:)
 
bootedbear said:
Double-"huh?"! What are you talking about?

What do you mean what am I talking about. Sysytem 7 Today is not a good candidate for CSS when many of my visitors (and registered users) are visiting from Netscape 4, IE 5, and iCab 2.
 
No problem with <p> tags

Your problem can be resolved by simply removing the default margin from the top of the p tag - give it it's own class, and set margin-top to 0. If it's just an inline style, it shouldn't cause any problems with NS4 etc
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.