Argh! Dreamweaver loves <p> tags...

Discussion in 'Design and Graphics' started by dpaanlka, Jun 2, 2006.

  1. dpaanlka macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #1
    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?
     
  2. Mac_Freak macrumors 6502a

    Joined:
    Apr 22, 2005
    #2
    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 :(
     
  3. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #3
    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.
     
  4. dornoforpyros macrumors 68040

    dornoforpyros

    Joined:
    Oct 19, 2004
    Location:
    Calgary, AB
    #4
    Ditto, dreamweaver makes building sites much easier, but you gotta keep a close eye on what's it doing with the code.
     
  5. dpaanlka thread starter macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #5
    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.
     
  6. dpaanlka thread starter macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #6
    I guess I'll just remap the key combo for a line break to be simply Return instead of Shift+Return
     
  7. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #7
    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>
     
  8. dpaanlka thread starter macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #8
    Yeah, i have since remapped that one keyboard shortcut, and changed the page accordingly.
     
  9. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #9
    Thats what I figured, but thats how it has been since I posted way back in the beginning.
     
  10. zarathustra macrumors 6502a

    zarathustra

    Joined:
    Jul 16, 2002
    Location:
    Philadelphia, PA
    #10
    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.
     
  11. TEG macrumors 604

    TEG

    Joined:
    Jan 21, 2002
    Location:
    Langley, Washington
    #11
    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
     
  12. dpaanlka thread starter macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #12
    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.

    Yes... we already covered that days ago.
     
  13. zarathustra macrumors 6502a

    zarathustra

    Joined:
    Jul 16, 2002
    Location:
    Philadelphia, PA
    #13
    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.

    :)
     
  14. bootedbear macrumors 6502

    bootedbear

    Joined:
    Sep 13, 2004
    Location:
    Austin, TX
    #14
    Double-"huh?"! What are you talking about?
     
  15. dpaanlka thread starter macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #15
    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.
     
  16. Injektilo macrumors newbie

    Joined:
    May 12, 2006
    #16
    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
     

Share This Page