Changing DW's default border settings (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


sunseenli -> Changing DW's default border settings (9/17/2007 14:47:42)

Hi all,

I'm creating a very image-intensive website through dreamweaver, where smaller versions of the pictures serve as thumbnails linking to full-size pictures (very basic.) The thing is, I'd rather not have borders (you know, the blue lines denoting a link) around any of the thumbnails. I can just go into Properites and put "0" in the border tag, but when I'm doing hundreds of images a day that can get really monotonous. Is there a way I can change a setting in Dreamweaver so the default is border=0 and I'd have to change it if I *did* want a border? It's maddening because Dreamweaver 8 did just that, but now that I've upgraded to CS3 it seems like I'm stuck...

Thanks in advance,
Crissy




Tailslide -> RE: Changing DW's default border settings (9/17/2007 14:59:06)

Add
img {border:none;}


to your stylesheet




sunseenli -> RE: Changing DW's default border settings (9/17/2007 15:05:44)


quote:

ORIGINAL: Tailslide

Add
img {border:none;}


to your stylesheet


Where should I add that? I wasn't using CSS, does Dreamweaver create a stylesheet automatically?




mar0364 -> RE: Changing DW's default border settings (9/17/2007 15:24:25)

It should be in the head of your document. Let me know if you need help finding that.

Regards!
Rich




sunseenli -> RE: Changing DW's default border settings (9/17/2007 15:48:51)

quote:

It should be in the head of your document. Let me know if you need help finding that.

Regards!
Rich


Hi Rich,

Two things:

1) I tried putting that in the header, it didn't seem to work; there was still a border around the image both in Dreamweaver, and in IE when I tested it.

2) Ideally, I'd really like to set this up so that it's just something Dreamweaver does by default, like how I was able to tell it to save my pages as .htm rather than as .html. I'd hate to have to insert code into every page I make from now on just to tell it not to put a link border around my thumbnails. Any thoughts?

Thanks,
Crissy




mar0364 -> RE: Changing DW's default border settings (9/17/2007 16:03:34)

Do you have a link I could look at? That would help a lot.

Rich




sunseenli -> RE: Changing DW's default border settings (9/17/2007 16:15:52)

quote:

Do you have a link I could look at? That would help a lot.

Rich


Sure:

http://www.crimsonskycreations.com/extras/New%20SMA/venus/supersvenus.htm

Like I said, it's relatively easy enough to just change the border attribute to "0" every time I add a picture...it's just a massive time waster (not to mention monotonous) to have to do that EVERY time I add a picture, considering the site is nothing other than a large image gallery.

Especially since that USED to be the Dreamweaver default--I'd add a an image, make it a link, and it wouldn't have a border. If I wanted it to have a border, then I'd have to go change it.

I've tried looking through the "Preferences" for Dreamweaver to see if there's a box I can tick to change it, but so far, no luck, and I've had no luck searching for the answer through Google, either.

~~Crissy~~




Tailslide -> RE: Changing DW's default border settings (9/17/2007 17:18:37)

Crikey you really aren't using CSS!!

Ok so you need to add it like this:

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




caz -> RE: Changing DW's default border settings (9/17/2007 20:04:39)

Crissy, until mar gets back to you try adding Tailslide's answer to your pages like this,

<html>
 <head>
  <title>
   Super Sailor Venus
  </title>
 <style type="text/css">
<!--
img {border:none;}
-->
</style>
 </head>


You will have to do this in the code view though. At least it will be only changes per page rather than per image.




mar0364 -> RE: Changing DW's default border settings (9/18/2007 8:29:37)

Crissy let me know if Tails suggestion worked?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125