SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    lesson 8 - Designing Without Tables Using CSS

    Being a newbie on this forum, I am not sure if i am in the correct one. I have the book, "Designing Without Tables Using CSS".
    My problem is the following; After opening the default.htm page and also the styles pages and followed the instructions on pages 181 and 182. Then i preview the page but i do not see the same results which appears on page 182. What could i have missed on doing? I would be grateful if someone could guide me.
    Thanking you in advance.

  2. #2
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are a number of problems with this post.

    First, the title, "lesson 8". Lesson 8 in what? It would be nice to know without clicking on the post.

    Second, the way you've phrased this question ensures that only people who own your particular book can help you. This is a bad idea. Not only does it limit the pool of people who can potentially help you, people who are more advanced than you on the topic at hand are less likely to purchase the same books as you, so your pool excludes the people most likely to be able to help you.

    If you post the html and css you are trying or link to a page you've uploaded with that html/css, many more people will be able to examine your problem and make suggestions about it.

    Third, you tell us that you didn't get the results on page 182, but didn't explain how your attempt differs from what you want. Not only would such an explanation help others in diagnosing your problem, but putting the problem in writing forces you to explore the problem and often gives you ideas about what might be wrong.

    Fourth, some topics are grey areas. Hmm, should I post in PHP or PHP Application Design? Tricky. However, I think if you look down the list of sub-forums here you'll find at least two sub-forums where this thread would clearly be better placed.

    Welcome to using the Internet to get free help, I hope the above suggestions benefit you.
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  3. #3
    SitePoint Zealot LYM.randy's Avatar
    Join Date
    May 2007
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...and if death comes so cheap,
    then the same goes for life - the CLASH

  4. #4
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, thank you both for your input.
    Lesson 8 refers to the book i referred to in my post.
    Both of these files were downloaded from Sitepoint web site.
    I did nothing extra, just to preview the page in IE
    Anyway i will consult the FAQ forum.
    Have a nice day.

  5. #5
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This should be in the CSS board. I'll ask an Advisor to move it there for you (since I can't do it myself).

    In the meantime, what does your code look like (I don't own the book)?

  6. #6
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Dan,
    I will try and post the codes later on this evening.

    Ron

  7. #7
    SitePoint Zealot LYM.randy's Avatar
    Join Date
    May 2007
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dood seriously, I'm just clowning with you
    no hard feelings?
    ...and if death comes so cheap,
    then the same goes for life - the CLASH

  8. #8
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, just go ahead and post them in this thread, ok?

    Randy, in the future, please try to be careful, ok? (Though I admit, that was a cute picture.)

  9. #9
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To Randy; i have read the FAQ but could not find a solution.

    To Dan; here is the code; exactly how it was downloaded, and the way it appears in the book. Oh, i could not find the CSS forum unless i am blind.

    body {
    margin: 0;
    padding: 0;
    background-color: #050845;
    color: white;
    background-image: url(img/bg.jpg);
    background-repeat: repeat-x;
    font: small Arial, Helvetica, Verdana, sans-serif;
    }
    #wrapper {
    background-color: #fdf8f2;
    color: black;
    margin: 30px 40px 30px 40px;
    }

  10. #10
    SitePoint Zealot LYM.randy's Avatar
    Join Date
    May 2007
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey that "read the faqing manual" is just my signature! It's a little joke thats at the end of all my posts :/
    Didn't mean to offend you
    ...and if death comes so cheap,
    then the same goes for life - the CLASH

  11. #11
    Galactic Overlord gold trophysilver trophybronze trophy
    HAWK's Avatar
    Join Date
    Aug 2003
    Location
    New Zealand
    Posts
    12,573
    Mentioned
    976 Post(s)
    Tagged
    14 Thread(s)
    Classic miscommunication!

    And Ron... you're in the CSS forum... I moved the thread.

  12. #12
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ron1937 View Post
    To Dan; here is the code; exactly how it was downloaded, and the way it appears in the book.
    Ok, the CSS is a good start, but it only helps a little. You basically need to provide three things.

    1. What CSS you have.
    2. What HTML you have.
    (It's probably nicest to accomplish 1 and 2 with an online example, but that's not essential)
    3. How the page you currently have does not meet your expectations or liking. "Not like the book" doesn't help much ... most people don't have the book.

    Here's an example of a well-asked CSS question: http://www.sitepoint.com/forums/showthread.php?t=489360
    See how it hits all three points? That poster describes what is going wrong, how he wants the page to look, and even lists some of the things he's tried and how those solutions didn't work.

    Quote Originally Posted by Ron1937 View Post
    Oh, i could not find the CSS forum unless i am blind.
    Go here, the forum root: http://www.sitepoint.com/forums/
    "CSS" is about 1/4 the way down the forum list under "Design Your Site".
    It's not a big deal, a lot of people don't put stuff in the right forum at first, just try to in the future.

    To play psychic, I'm going to guess that you need to add id="wrapper" to some html element.
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  13. #13
    SitePoint Addict CaryD's Avatar
    Join Date
    Nov 2006
    Location
    San Diego, CA
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't forget the padding at the top of page 183 which gives you this:

    Code CSS:
    #wrapper {
       background-color: #fdf8f2;
       color: black;
       margin: 30px 40px 30px 40px;
       padding: 10px;
    }

    You'll have to post your html if things still don't look right.

  14. #14
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I once copied and pasted the code to my browser and did not get the excpected results. In my case I realised that the <html> tag at the beginning was the one causing the error. To get some features you need the correct html tag reference. eg


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html dir="ltr" lang="en">


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
  •