Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

The Basics

Discussion in 'Website Design Forum:' started by Tony Hardy, Mar 25, 2011.

  1. Tony Hardy

    Tony Hardy Well-Known Member

    Hey everyone.

    I've got little to limited experience in the web field and I'd like to make some headway into it by starting on my own portfolio site.

    If someone could advise me on this it'd be great.
    I can knock together my site layout etc on Photoshop (is this the right programme, what size do I make it?) I'd like it to be locked to browser size. So there's no scroll right to left or up and down, just a navigation menu on the left, with things loading up on the right.

    How do I go about this and then coding it into a working site?

    Thanks a lot.
    Tony
     
  2. Corrosive

    Corrosive Moderator Staff Member

    Hi Tony

    The basics are HTML and CSS. Particularly the CSS Box Model for positioning. Photoshop is fine for layouts but stay well away from the 'export as HTML' button. Use PS for graphics really and then hand write your code.

    Unfortunately you won't get a perfect size on every browser and screen resolution but a width of 960px is considered 'safe' nowadays.

    Good luck :icon_smile:
     
  3. Paul Murray

    Paul Murray Moderator Staff Member

    So long as your DPI is set to 75 anything you produce in Photoshop should display at the same scale on screen. I find it best to draw out an idea on paper, then create a flat in Photoshop, then make notes of the measurements of the elements (how far from the left/right etc).

    It makes it much easier when you come to write the code/CSS. If you have Dreamweaver you could open up a basic CSS controlled template and edit that to get a feel for what things do.
     
  4. Tony Hardy

    Tony Hardy Well-Known Member

    So if I make a 960 width what do I go with as my height?
    Cheers for the advice people. I knew CSS and HTML is the basic idea of coding etc, but where do I start with converting a flat image into HTML/CSS etc?

    I've got an idea drawn down etc like, so it shouldn't be too much hassle to get sorted out design wise.
     
  5. Paul Murray

    Paul Murray Moderator Staff Member

    Either:
    Height: auto; (will adjust the size depending on the content)

    or

    Height: 100% (in theory scales the div to the bottom of the browser window all the time, but doesn't always work in some browsers).

    You could also not have a height entry but this can lead to errors sometimes.
     
  6. Tony Hardy

    Tony Hardy Well-Known Member

    Haha, I meant for designing it in Photoshop?
    But I'm sure that'll come in very helpful for the actual coding Paul, cheers :)
    Is there any tutorials anywhere?
     
  7. dedwardp

    dedwardp Member

    Generally I often end up taking a screenshot of a site such as Facebook, cropping the sides off and then using that as a rough idea for width, for height just go with what you need - if you have enough content to go down further then go that far!

    Often the middle of the screen where the content is will become constant so that as the content expands the page can also get longer to facilitate it.

    In terms of going from Photoshop to code, you can google slicing to css and so on, but if you do draw out a model on paper to work out what areas you want etc you can design around the model so that you know it would fit together ok in the end.

    To achieve certain things from Photoshop with CSS are more streamlined than you would perhaps first think and so you have to think logically when slicing up your template. As an example, if in Photoshop you designed this forum, say, this is the image slice for the top of the forum header. Because it repeats, you can slice it to just 1px wide, set it as the background image for that area and then set the style to repeat horizontally, meaning the image that needs to be loaded is a very small file.

    It makes sense when you think about it but at first it's something you may otherwise overlook. If you design and slice with things like that in mind, then drop the images in to the relevant div areas etc etc it will come together.
     
  8. Tony Hardy

    Tony Hardy Well-Known Member

    Cheers everyone.
    I'm going to knock my design into place this week, so I'll post it somepoint next weekend when I'll inevitably need more assitance.
     
  9. djb

    djb Member

    For height you want around 620px to allow for all the gubbins at the top of the browser - width 960px as mentioned above.
     
  10. Tony Hardy

    Tony Hardy Well-Known Member

    Thanks a lot. I'll be starting this soon.
     

Share This Page