Ways to address src images

I've looked at much of the documentation on the web about
this but I could still use a primer.
The ways that src documents are referenced in both html and
css style sheets is confusing. I've seen specs starting with "../"
and others starting with "/" while others start with the folder
name without any prefix. Can someone clarify the formats used to
refer to folders or files inside the web site area?
Also, can someone clarify when to use import vs. link rel
when referring to a style sheet?
Thanks
Tom

On understanding paths- this is an old thing:
There are three link methods-
Relative to Document
Site Root Relative
Absolute or Full http path
1) RELATIVE TO DOCUMENT
../folder1/page.html
or
folder1/page.html
or
page.html
can start with a folder name, a filename, or can use ../
which means "go up
one folder" � ../../../ �would mean go up three
folder levels from present
location.
Gives directions on how to get to the other file, based on
where you are
now. such as go UP one folder, then find a folder named
'folder1', then in
the 'folder1' folder get a file called page.html
A real world analogy- to get to the Post Office from the high
school, leave
the high school parking lot, go west, turn left, go south 2
blocks.
�( ***The directions are based on where you are now
With Document Relative paths and links, as long as the
relationship between
documents is kept the same and folders aren't juggled around,
the links will
work anywhere. The most portable linking method.
Say a page located here:
http://example.com/folder1/fol
der2/page.html
contains an image tag like this:
<img src="../image.jpg">
That means go up one level from where this page is, and find
image.jpg in
that directory.
http://example.com/folder1/ima
ge.jpg
2) RELATIVE TO SITE ROOT
/folder1/page.html
or
/page.html
A SITE ROOT relative path will ALWAYS start with a leading
slash �/
The leading slash means "go to root first, and then follow
this file path"
Relative to site root gives directions from the root level of
the site,
regardless of where you are starting from.
This root is the domain name, when the site is on a server.
If your site is
defined to a subfolder of a domain, do NOT use site root
relative paths in
dreamweaver. They will come out wrong, because dreamweaver
will base them on
what you've told it your site's folder is, not the real
"root" of the site,
which is at the root of the domain.
In real world, to get to Post Office, go to the City Hall
then go two blocks
east. �It doesn't matter where you are now- you have
to go the City Hall to
start following the directions.
(***the directions are based on a ROOT or ground zero point
Think of some cities like Anchorage, AK or Salt Lake City-
all street
addresses there can be read as co-ordinates from a zero
point. By just
looking at the address, you know in what corner of the city
it is.
Site Root Relative the way we use it requires that there be a
domain to be
relative to-- thus will not work to create a site on CD. And
will not work
from a Hard Drive. "Root" on a CD or HD is different. Needs
to be on a
server to work correctly. And- should not be used if your
remote site is
hosted in a subfolder of a domain, like
http://geocities.com/mysite/
The TMP files dreamweaver creates for a "preview in browser"
convert these
to document relative so they work during preview- but only
the document
that's being previewed. If you click a link on the "Preview
in Browser"
page- you will be looking directly at a file from the hard
drive- and site
root relative paths on that page won't work.
Say a page located here:
http://example.com/folder1/fol
der2/page.html
contains an image tag like this:
<img src="/folder1/image.jpg">
That means go to the site's root level on the server,
http://example.com/
then find the folder1 directory, and in that directory find
image.jpg
http://example.com/folder1/ima
ge.jpg
An example of site root links not working-
Your site is at
http://geocities.com/mysite
If you use a site root relative path in dreamweaver, the link
will come out
/image.jpg
and the image is at:
http://geocities.com/mysite/im
age.jpg
But the browser will be looking here
http://geocites.com/image.jpg
and the image isn't there...
3) ABSOLUTE
http://mydomain.com/folder1/pa
ge.html
absolute is the full http address of the file
To get to the post office, go to 113 Main Street, Anytown,
Your_State, USA.
Don't need to know anything about where you are starting
from, it's an exact
address.
Almost all people who use dreamweaver use Document Relative
paths, and let
dreamweaver manage the paths. There are exceptions but few of
them. Document
Relative is the easiest for a new user to stay out of trouble
with.
The other big concept is that site has to be properly defined
within
dreamweaver, because dw makes all links based on the
information it's been
given in the site defintion. If that info is wrong- then
links can be wrong
(especially site root relative paths)

Similar Messages

  • Address Book Images Folder = 3 gigs and 30,000 files

    Can anyone tell me why Address Book's images folder (Library/Application Support/Address Book/Images) gets to take up 3 gigs of space and contain more than 30,000 files? I like to have photos for people and companies in my address book, but I can't imagine why an address book with 354 cards would have a supporting images folder that friggin huge. Is this just bad programming on Apple's part? Using Quicklook, I can see that there are several images that are duplicated with different file names. What actions generate these duplicates? Is there a way to clean up this folder without completely dumping the contents?

    HI Paul,
    There's no way that is right.
    Your profile indicates you are running 10.4.8 but you posted in the 10.6 Snow Leopard forum? If you have updated to 10.6 please click My Settings on the right side of this page and update your profile. Thanks. (iMac G5... PowerPC)?
    Unless you have copy/pasted information for Address Book and contact information from the internet or e-mail, that's the only way I can think that could happen.
    I don't see why you can't delete those images if they aren't in use.
    If you are running 10.4, try installing the 10.4.11 combo update.
    http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eppc.html
    As with any update, repair disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn
    Message was edited by: Carolyn Samit

  • Any simple way to do popup image view overlay in DW? Can't get pickachoose+fancybox+fluid working

    Hey all,
    Just wondering if anyone knows any simple ways to create a popup over lay window like what fancybox/lightbox/shadow box does and get it to work with a Dreamwever fluid grid site?
    I've got pikachoose+fancy box to run together perfectly in a plain html page, but when I bring that code into a Dreamweaver fluid grid site, the code doesn't work (well images don't cycle, and popover doesnt load when you click on the image link).
    I'm guessing it's a jquery conflict of some kind.
    Any help would be great, I can post the full code if someone is able to take a look. When I inspect the code in Google Chrome web inspector I get in the console:
    Uncaught TypeError: Cannot read property 'msie' of undefined jquery.fancybox-1.3.4.pack.js:18
    Uncaught TypeError: Object [object Object] has no method 'fancybox'
    Code below
    <!doctype html>
    <html class="">
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>-</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="css/ce4.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="jquery.fancybox-1.3.4.css" media="screen" />
    <link type="text/css" href="styles/bottom.css" rel="stylesheet" />
    <script src="respond.min.js"></script>
    <script type="text/javascript" src=" https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script type="text/javascript" src="lib/jquery.pikachoose.js"></script>
    <script type="text/javascript" src="jquery.fancybox-1.3.4.pack.js"></script>
    <script language="javascript">
    $(document).ready(function (){
    var a = function(self){
    self.anchor.fancybox();
    $("#pikame").PikaChoose({hoverPause:true,  showCaption:false, text: {previous: "", next: "" }, buildFinished:a});
    </script>
    </head>
    <body>
    <div class="pikachoose">
    <ul id="pikame" >
    <!-- <li><a href="1.jpg"><img src="1.jpg"></a>-->   
    <li>
    <a href="images/1large.jpg">
    <img src="images/1small.jpg"/>
    </a>
    <span></span></li>
    etc... etc...
    Any help would be great

    I don't know what a pikachoose is, but Fancybox2 works in Fluid Layouts.  Copy & paste the following code into a new, blank document.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, with Fancybox2 Viewer</title>
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    /**this styles image container**/
    #thumbs p {
    float:left;
    width: 180px;
    height: 12.5em;
    margin: 10px 0 0 20px;
    padding: 10px;
    border: 1px solid silver;
    /**rounded borders**/
    -moz-border-radius: 20px;
    -webkit-border-radius:20px;
    border-radius: 20px;
    /**this styles caption text**/
    font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
    color: #666;
    text-align:center;
    /**recommend using same size images**/
    #thumbs img {
    width:  160px; /**adjust width to thumbnail**/
    height: 120px; /**adjust height to thumbnail**/
    margin-bottom: 1.5em;
    opacity: 0.75;
    #thumbs img:hover {opacity: 1.0}
    /**float clearing**/
    #thumbs:after {
    content:".";
    clear:left;
    font-size:0px;
    line-height:0;
    display:block;
    visibility:hidden;
    </style>
    </head>
    <body>
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
    <!--insert thumbnails with links to full size images below-->
    <div id="thumbs">
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> <br />
    Caption 1
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> <br />
    Caption 2
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> <br />
    Caption 3
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> <br />
    Caption 4
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120" alt="Thumbnail 5" /></a> <br />
    Caption 5
    </p>
    <!--end thumbs--></div>
    <!--FancyBox function code-->
    <script>
    $(document).ready(function() {
         $('.fancybox).fancybox();
    </script>
    </body>
    </html>
    Nancy O.

  • Is there a way to reuse an image placed in a document without copying it into the file again?

    I recently completed my first eBook with iBooks Author.  It is a photo essay and contains primarily photographic images.  In some places, I used the same image, or parts of the same image, in more than one place.  I could not find a way to locate the images I had previously copied into the book file, so I could refer to them and place the image in a new location.  It seemed, to me, that this was a common sense capability that would decrease the file sizes significantly.
    Did I miss something?
    Thank you.
    Ray

    nope, you didn't miss anything. IBA does;t have a library function listing your images. You'll have to copy/paste or re-nsert the image wherever you need it. If it's an image that you could put in a layout, then you only put it once and it appears on all pages that use that layout.

  • Is there a way of aligning the images in iweb photoalbums other than have them be a square?I have them at same height and resolution but htere is a default that shrinks them and aligns them at the bottom.Thanks.

    Is there a way of aligning the images in iweb photoalbums other than have them be a square?I have them at same height and resolution but htere is a default that shrinks them and aligns them at the bottom.Thanks.

    So how did you do it?
    by understand what iweb widgets do, in this case setting gridEntry widget's scalMode preference from fill to fit.
    then reset the displayed image, so it fits in the display area even if it's portrait aspect.
    however, i found some glitches in gridEntry widget that's quite strange... but all fix-able.
    perhaps, iweb experts (whose had poked at my example) here can chime in.

  • Is there a way to not load images in safari? Like on android you can tick a box to load images or no to the internet?

    Is there a way to not load images in safari on ios 7 like in android there is
    The option to load or not load images?

    My reply here was specific for this thread, but as you noted, I didn´t read careful enough. I wrongfully took for granted that issues in the More Like This box was platform dependent. I tried to apolgize accordingly, I would like to see the post deleted, but that doesn´t stop you from policing obviously.
    And instead of arrogantly replying about matters irrelevant for this thread, maybe you should start reading more carefully yourself. The posts you are referring to are related to large images failing to load properly in Safari 7. This is not as you claim "vaguely related". Take this elsewhere if you have a problem with it.
    Again, sorry for messing up the thread.

  • Is there any way to create this image in photoshop?

    Is there any way to create this image in photoshop?  ,Any help would be appreciated?

    What JJMack said. An example I pulled in less than 5 minutes:
    All I did was inserted a text layer with that same inside color and a stroke layer style with that same outside color (about 3 or 4 pixels; outside position). Font used was Calibri Regular.

  • Is there a way to change the image numbers in a file in Aperture?

    Is there a way to change the image numbers in a file in Aperture? We shoot with two photographers and so the img numbers are not in order but I would like to have the photos in chronological order on the disc when I give it to them. Does anyone know how to do this? I have them all in order ready to go in Aperture but when I move them to the disc to be burned they default back to the img number order. Thanks for your help!

    What do you mean by "image number"? The file names like "IMG_7822.CR2" or "IMG_7822.jpg"?
    You can create custom names with appended numbers, when you export your image files to be saved on a disk.
    Sort your images by date in the browser, select them, then use the command "File > Export > Version" to write the files to the disk. Set the name format to "Custem Name with Index" or "Custom Name with Counter" to create numbered names in your current sort order.
    Regards
    Léonie

  • Is there a way to open an image in camera raw from within photoshop cs6 (on a PC)?

    is there a way to open an image in camera raw within photoshop cs6 (on a PC)? or do I have to use bridge to do this?
    Thanks....

    Just open the camera raw file, and it will open in the ACR plugin.

  • Is there a way to format multiple images at once? Change colour mode or resolution?

    Is there a way to format multiple images at once? Change colour mode or resolution?

    It's very easy to make an action.
    Go to window > actions
    In the actions panel, simply click the 'create a new action' button, it starts recording as soon as you've created it (when you've given it a name).
    Now you can apply the changes you want to make to the images on the file you have opened.
    After you've done all you need to do. You click the 'stop' button. The action is now ready to use. And you can apply the changes you made on all the other files.
    Then you can continue how gener7 explained.
    I usually include a save and close command, so that the whole batch doesn't end up opened after running the script.
    But if you do that you have to create a new file, and save it to your computer before you start recording the action, otherwise the save command will be replaced by each file. And you'll end up with one edited file in the end. At least for as far as I know!

  • Is there a way to save an image file as a jpeg and add -web or -print to the file name?

    I am trying to find a way to save my image file as a jpeg and add -web or -print to the existing file name.  This way I can easily see which files are lower resolution for web posting or high resolution for printing.

    Jason,
    I helped somebody do a very similar thing about a week ago.
    The trick is to use the Batch command's ability to construct a file name.
    Tell the batch to append, e.g. "-x" without quotes, to the name of each saved file.
    The batch runs an Action which does a save as JPEG, resize image, add logo, save as JPEG, then close document.
    The output is "<document name>-x.jpg" and "<document name>-x-x.jpeg".
    Then use Windows Explorer to rename "*-x-x.jpg" to "*-print.jpg".
    Then rename "*-x.jpg" to "*-web.jpg".
    See http://forums.adobe.com/thread/1038992?start=32
    The name construction that I used there was just an "x" appended to the document name. Use whatever you like. Also juliew subsequently referred to the method as a "double-batch" run, although it is not. One run of the batch will output two JPEGs for each input document.
    I hope the disagreements in that thread don't cause too much disruption.
    If you want, the Batch command itself can be recorded in another Action which would store the parameters of the batch, then you could run that Action anytime without having to set up the details of the batch each time. It would always output to one specific folder, though.

  • Is there a way to address email (i.e. a word or some code) that would place that email in a specified inbox folder?  not using internal rule, rather the beginning of this sort happening as it comes in?

    is there a way to address email (i.e. a word or some code) that would place that email in a specified inbox folder?  not using internal rule, rather the beginning of this sort happening as it comes in?
    In other words
    I tell a friend if he is emailing me on a particular subject, is there something he can do at his end ([email protected]/research)
    like adding the word research at the end of my eamil address that would tell my inbox to place that in the inbox/research folder?
    If I have to use a rule on my end, then do I tell him to just place the word research in the subjct line and then I write a rule to place anything with the word research in the subject line in my inbox/research folder?
    will the subject line be required to only have the one word research to work, or will the rule look for any presense of that word in the subject line?
    thanks
    eric

    iCloud email supports 'plus' addressing. http://en.wikipedia.org/wiki/Email_address#Address_tags
    So your friend could just add '+research' to the username part of your email address, and you setup a rule at icloud.com to put all emails sent to that address into a particular folder.
    For example:
    [email protected]
    There's no way to do it without rules on the server though.

  • Is there a way to prevent an image from turning blue when selecting it?

    I'm exported a pdf from InDesign that will be used as a brochure for one of the exhibitions at our museum. I'm wondering if there's any way to prevent an image from turning blue when a reader clicks on it. Since all of the images are works of art, I'd rather that they not change color when people click on them.
    I changed the security settings so the images couldn't be copies, hoping that would prevent the blue square, but it didn't help.
    thanks for any suggestions.
    Chris

    There are several ways to do that and here are but two of them.
    1. If you want to make a new image you can right click on the channel, click on Duplicate Channel and under Destination>Document, select New
    2. If you want to add a new layer to your document, click on the channel in the channels panel, go to Select>All, then Edit>Copy, click on RGB in the channels panel and then Edit>Paste

  • The best way to enlarge an image for print?

    Hello
    I've been designing for print for several years. Occasionally I design large display posters/banners (A0, 6-sheet, billboard etc) which use a photographic image. Assuming that the image I have is smaller at 300ppi than the final print, what is the best way to enlarge the image? Based on my experience, it seems that there are three options (to make it simple, the example here assumes that my image is exactly half the size it needs to be printed at. I'm also assuming that the file I will supply to the printer will be a high res pdf exported from Indesign):
    1. Set up the Indesign file at 100% size, place the photo and have Indesign upscale the image to 200%. Export a high res pdf for print.
    2. Set up the indesign file at 50% size, place the photo with no upscaling by Indesign. Export a high res pdf and have the printer blow it up to 200%.
    3. Set up the Indesign file at 100% size, enlarge the photo in Photoshop to 200%, and place the photo with no upscaling in Indesign. Export a high res pdf for print.
    I have been advised that having Indesign upscale the image is not a good idea, and I never do this. I guess that option 3 is probably best, with Photoshop doing the work and the resulting pdf being the correct size. However, it's not always possible to do this – some posters are huge which means that the enlarged photo and the high res pdf will both be huge files, and I think also Indesign has a maximum document set up size anyway. So sometimes I use option 2.
    So firstly, why is it a bad idea for Indesign to upscale the image (as I say, I never do this, but I would like to know the technical reason)? Secondly, if the choice is between re-sizing myself in Photoshop prior to exporting the pdf, or having the printer enlarge a high res pdf, which is better? When I say 'better' I mean in terms of the quality/sharpness of the end result. Also, I assume that vector elements in my design will not be adversely affected in either scenario, is that assumption correct?
    Thanks

    Sorry for the added confusion.  It appears, after doing some checking in my CS2 apps ( InDesign), there is no setting for DPI / Output Resolution.  Only Transparency Flattener Setting. See screen shot below...
    If you select Postscript File in the Print Presets, you can access resolution settings for transparency flattening there, too...
    in the "Advanced" tab dialog...
    But, I like having the option in Illustrator 10 File > Document Setup where I can set the output resolution to whatever is appropriate.  In this case ( below ) I've got it set for 5080dpi / 300ppi.  You also have Effect > Document Raster Effect Setting where you can select 300ppi ( see screen shot below )...
    ...and Raster Effects Resolution setting...
    I may have misled you because the apps I have are not CS6; but you should be able to follow along in your CS6 apps in various settings dialogs.  Mainly, resolution settings can be set in the Print dialog boxes.
    The main thing to keep in mind is, because you are enlarging upon output, the base scaled down file must have enough resolution to maintain its appearance at the final size.  In the case of 50% or 25% file resolution should be maximum ( for current apps it appears 300ppi is considered high resolution.  Most apps now leave output resolution setting adjusted in the RIP / Print driver.
    I still use Distiller because it allows me to setup custom PDF settings and save them for future use.  You very well may be able to do that in CS6 apps; but I have a tried-and-true workflow that utilizes Distiller as a personal preference.

  • Is there a way to unblock html images in e-mail

    we're using comexp (sun messaging server 6.2-3.04). When our users receive e-mail with html content, the images are blocked. Is there a way to unblock the images?
    When the e-mail is forwarded to an external account that has the facility to unblock images, the images can be unblocked (e.g., like gmail). Just wondering if there is a way to unblock images when using the sun one messaging client.
    Thank you,
    Naveen

    >
    I will repeat my questions:
    => What version of Communications Express are you using (./showrev -p | grep uwc).
    Saying "comexpress 6" is meaningless as it could mean one of 50 different releases spanning several years and hundreds of bug fixes.
    => Can you see the image if you view the email in Messenger Express?
    The images are remote URL's that need to be downloaded by the browser. I have tried right clicking on the images and selecting Show Images in IE, but nothing happens. The images are still not displayed. => Does this problem happen in a non-IE browser e.g. Mozilla Firefox?
    => What type of image files are they e.g. JPG/GIF. Please provide an example URL.
    When the e-mail is forwarded to another e-mail client that has the ability to unblock images, the images can be unblocked. I was wondering if there was a way to unblock the images using the Sun One Messaging web client. As I already said, Messaging Express / UWC/CE does not block images. You may however be hitting a bug with regards to downloading/parsing the URL correctly out of the html email.
    Regards,
    Shane.

Maybe you are looking for

  • Indesign CS6 crashes repeatedly

    When do crashes occur? Seemingly after an object (jpg, pdf) has been imported, individual page objects (text, image container) get corrupted. When accessing them (or menu items) CS6 crashes. Workaround: Save as IML-file, reopen, save. Sometimes this

  • Aperture 3 Places Data not Imported Into iPhoto

    I tagged the location of a set of photos in Aperture 3 using Places. Then i went to iPhoto, and used the import from Aperture function to bring the whole set into iPhoto in a single move. One of the 24 images carried the Places data with it; the rest

  • How can I get my mail show up on notification area?

    How can I get my mail show up in the notification area?

  • ORA-00911 error creating a view with PL/SQL

    Hello. Working with SQL Developer, I'm trying to write a procedure that creates a view. After a successful compilation, each time I try to execute it I get an ORA-00911 error and I'm not able to find the reason. Here's my code. Thanks in advance.   C

  • How to use CVS to fetch the repository

    hello. I want to use cvs to fetch some codes from j3d.org. When I do "cvs -d CVSROOT=:pserver:anonymous@cvs. j3d.org:/home/cvs/j3d/cvsroot checkout code " in cvs directory, I get error message "connection refused". what's wrong ? could some one help