Jump to content


Why is Dreamweaver doing this!?


7 replies to this topic

#1 warden

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 07 June 2008 - 11:18 PM

This has never happen before.
I correctly sliced the layout, but when I go and link one of the buttons, for some godforsaken reason, Dreamweaver creates this blue outline around the box, and stretching the layout, which is really obnoxious

Anybody know why????
Posted Image

#2 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 07 June 2008 - 11:54 PM

This has nothing to do with Dreamweaver and is a normal behavior of HTML. When a link is added to an image, a blue border will go around it by default. You can remove that border by adding this code to your CSS (in your <head> section):

<style type="text/css">
img {border:none;}
</style>

You could also set the border value of the image to 0, but then you will need to do so for each image which isn't the best method.

#3 CoryMathews

    P2L Jedi

  • Members
  • PipPipPip
  • 554 posts
  • Gender:Male
  • Location:Texas

Posted 09 June 2008 - 06:58 AM

the way it looks in dreamweaver is almost never the way it looks in a browser. Dont even pay attention to it.

#4 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 09 June 2008 - 02:23 PM

View PostCoryMathews, on Jun 9 2008, 06:58 AM, said:

the way it looks in dreamweaver is almost never the way it looks in a browser. Dont even pay attention to it.

If you code your page correctly, it will look the same. :(

But just like any HTML editor, you should always use the Code view and forget about the Design view.

#5 Bug

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 3,611 posts
  • Gender:Male
  • Location:Perth, Australia

Posted 09 June 2008 - 04:55 PM

View PostNGPixel, on Jun 10 2008, 05:23 AM, said:

View PostCoryMathews, on Jun 9 2008, 06:58 AM, said:

the way it looks in dreamweaver is almost never the way it looks in a browser. Dont even pay attention to it.

If you code your page correctly, it will look the same. :(

But just like any HTML editor, you should always use the Code view and forget about the Design view.
Agreed :)

#6 CoryMathews

    P2L Jedi

  • Members
  • PipPipPip
  • 554 posts
  • Gender:Male
  • Location:Texas

Posted 09 June 2008 - 10:10 PM

naw, even if the code validates it doesnt always render properly. I am using dreamweaver 8. It may always work for static html pages, but pages with includes or lots of floating items they are not always rendered properly. Maybe its because I am still running version 8, but I do not agree that it always does.

#7 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 10 June 2008 - 12:45 AM

He didn't say if you write valid code that it would look the same. He said that you had to "code your page correctly." What correct means is really left to the eye of the beholder.

However, the difference between valid and correct is a can of worms that i don't think this topic is cut out for. The point to be made is that it's not the WYSIWYG editor that causes problems, its a lack of understanding in HTML.

#8 Jacorre

    P2L Jedi

  • Members
  • PipPipPip
  • 824 posts
  • Gender:Male
  • Location:USA
  • Interests:Computers, Technology, Internet, Graphic/Web Design, Music, Soccer

Posted 19 June 2008 - 10:51 AM

It's true about Dreamweaver that it doesn't render the page exactly the same, especially if you're using absolute positioning. Sometimes it makes the object that's absolutely positioned show up in the wrong place within Dreamweaver, but when you preview it in the browser it's just fine. That's just a limitation to the rendering capabilities of Dreamweaver, but as long as it looks right across browsers you're good to go!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users