Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PSD Layout in Dreamweaver

    Hey guys. I've imported my .psd website template layout in Adobe Dreamweaver CS5 and I'm having a problem trying to center the layout! In the page properties I have clicked on 'middle' as well as 'Absolute Middle' and each time I have previewed in my browser, it is still on the left hand side. Any ideas?

  2. #2
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by SAS25 View Post
    Hey guys. I've imported my .psd website template layout in Adobe Dreamweaver CS5 and I'm having a problem trying to center the layout! In the page properties I have clicked on 'middle' as well as 'Absolute Middle' and each time I have previewed in my browser, it is still on the left hand side. Any ideas?
    Wrap your page in a div tag with the ID of #wrapper.

    Then create the CSS rule;

    Code:
    #wrapper {
    width: ???px;
    margin: 0 auto;
    }
    In your stylesheet.

    Word of advice... Importing a PSD from Photoshop is NOT how to design a website (whatever pre-pubescent Americans on YouTube might tell you)

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cheers...coding means no work for me as I am clueless at it! I'll be passing it on to a friend of a friend for that part lol! I'm just doing the graphics mate. I've tried creating websites in Dreamweaver but find it irritating lol! Cheers anyway.

  4. #4
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Ah right, fair enough. I just see that approach so often from people building sites that I assume it is for a production site.

    You could try wrapping the whole image in a div like so;

    Code:
    <div align="center">
    Site Goes Here
    </div>
    That should do it for demo purposes.

  5. #5
    Junior Member
    Join Date
    Sep 2011
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just out of curiousity..what it the correct way to build a website (software, etc)?

  6. #6
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by SAS25 View Post
    Just out of curiousity..what it the correct way to build a website (software, etc)?
    That is a very broad question but, fundamentally, you need your content marked up with semantically correct HTML (i.e. headers in h tags, paragraphs in p tags etc) and then styled from a CSS (cascading style sheet) that tells the browser how you want the HTML to be displayed. The key is to separate style from content.

    The issue with exporting from Photoshop is that Photoshop doesn't understand semantics so you are not going to get a Google and user friendly website from that. People build websites, not computers.

    As for software you can build a website using notepad if you want to.

Similar Threads

  1. Help With Inline Layout
    By Tony Hardy in forum Website Coding & Programming Forum:
    Replies: 3
    Last Post: 11-23-2011, 04:58 PM
  2. Layout of a website
    By True Graphics in forum Website Design Forum:
    Replies: 5
    Last Post: 08-11-2011, 06:46 PM
  3. Page layout
    By fearo in forum Website Design Forum:
    Replies: 2
    Last Post: 07-14-2011, 11:08 AM
  4. homepage layout
    By gold2040 in forum Website Design Critique:
    Replies: 11
    Last Post: 08-15-2010, 12:43 PM
  5. Portfolio Layout
    By TheNoone in forum Website Design Critique:
    Replies: 2
    Last Post: 10-09-2009, 09:46 AM

Posting Permissions

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