SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Location
    Melbourne, Australia
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Photoshop CS5 slices in Dreamweaver

    I have sliced a design for a header I received into 40 odd separate slices and they are showing up in the html file with borders around each slice.

    Does anyone know why this would be happening. I have never seen it, but assume I have done something wrong.

    Hope someone can help.

    Thanks,
    Vicki

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,168
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Ew, slices. Probably not necessary if using a CSS layout.

    Anyhow, try adding

    Code:
    img {border: none;}
    to your style sheet.

  3. #3
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,798
    Mentioned
    34 Post(s)
    Tagged
    2 Thread(s)
    Probably not necessary if using a CSS layout.
    Well slices are still useful as element BGs. This however is not what PS exports. Chances are the HTML file is a table containing all the slices ( and THAT's is a 'ewwwwww'). You can see what I am saying by switching over to code view on DW.

    Code the header semantically, apply the images as bg with CSS ( I also bet you wouldn't need 40?! separate slice for a header that way)

  4. #4
    SitePoint Member Emylee's Avatar
    Join Date
    Jun 2012
    Location
    Corpus Christi, Texas, United States
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When using photoshop slices, make sure all the lines touch and that SNAP is on (View > Snap) so that you don't get any gaps. I would keep it very direct, horizontal lines. IF you have to make a link or a navigation I would use image maps.

    But if you want to be in the year 2012, I would learn how to convert it into CSS and Div layers. There are a million and one tutorials on how to convert a photoshop layout into a div and CSS layout. It's how i learned!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •