Why is Dreamweaver adding a linefeed to my buttons?

December 6th, 2008 · No Comments

Hello again:

In Total Training for Dreamweaver 8, Part 1, Lesson 6, Topic 4 at the very end, you center the SUBMIT and the CLEAR buttons by selecting them both and hitting the “center” button (align center). When I do this, DW8 adds a line feed after the SUBMIT Button and then puts the CLEAR Button below it. (????) What is going on here?

Thank you,
David S.

Hi, David,

That’s just an extra div tag around the button. Depending on exactly where your cursor was when you added that button, Dreamweaver must have added the div tag with the center command instead of putting the button in the same div tag as the other button.

Try this (it will be a good exercise in working with code anyway):

Choose the Split view by clicking on the Split button at the top left of the workspace. Click on the SUBMIT button in Design view and your cursor should go right to that place in the code. Look for the <div> tags that surround the buttons and consolidate them so there is one div tag instead of two.

You want to look for <div> </div> tags. Don’t be confused that the div tags will probably have a style or some other code that is centering the buttons. What you want to do is delete the first close tag </div> and the open <div> that follows (make sure to delete the entire tag, including any extra code within the brackets).

When you do that, both buttons should end up in one little box, side by side.

Hope that helps and I wish you all the best,
Janine

Still want more? Visit the Dreamweaver Help Center at www.DigitalFamily.com/dreamweaver to find Dreamweaver tips, tricks, and tutorials.

Tags: Dreamweaver 8 · Dreamweaver CS3 · Dreamweaver CS4 · Web graphics

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.