38 users online (0 members and 38 guests)  


Page 1 of 2 1 2 Last
  Results 1 to 15 of 22

Related

  1. Google updated PR    Forum: Search Engine Optimization - SEO - Forum
    Replies: 7
  2. CSS Tutorial Updated    Forum: CSS Forum
    Replies: 4
  3. last updated script    Forum: Website Scripts Forum
    Replies: 4
  1. #1
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    CSS Tutorial Updated

    I have re-styled my CSS tutorials -

    http://css.somepeople.net

    Now they comply with css2 standards (oops ) and use a table-less layout.

    Will be adding more stuff now, as I will have some more time on my hands soon.

    BTW - Dave, thanks for the 'partner' link
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Looks good

    Ready to start promoting yet?

    Dave

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Yup
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    Thanks for all your work on our behalf - it helps make the internet a friendlier and more helpful place to visit.

  5. #5
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Thanks Benzden. I really appreciate that.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  6. #6
    Capo's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Aug 2002
    Location
    USA
    Posts
    69
    Yes, I agree! You've done a great job Dean, Dave, and everyone else who helps everyone out around here!

  7. #7
    Capo's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Aug 2002
    Location
    USA
    Posts
    69
    Dean,

    Superb job with the guide, you have given me a new love for CSS. Originally, I would only use a few CSS comments in my head to just change a few basics with text. I definitely want to learn more and experiment with a site layed-out with CSS, like you have done on your tutorial page.

    After reading it and looking at your source I believe I understand a lot more than I did at first. However, I am having some confusion as far as the positioning of tables (divs) goes. I see you have comments in your CSS coding telling a certain table to go here on the page and move up, left, right, etc.. by x%. How did you know what % to use? Do you just play around with numbers until things end up in the right spot? I guess I donít yet understand how to place things neatly by simply typing in the percentages, as apposed to being able to drop/drag things around.

    Could you explain this more in depth to me?

    Thanks!

  8. #8
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Sure -

    Basically, it was a case of taking it a <div> at a time until I was happy with each one, trying out different percentages.

    A lot of people have a fear of CSS (its something new, so its only natural) , but as you can see from viewing the source, my html is much, much simpler than any tabled design. Four divs and an image. Thats it.
    The style is also relatively simple. I want the side bar 30% wide, 10% from the left, 10% down the page. Simple.

    Any more questions, go for it.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  9. #9
    Capo's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Aug 2002
    Location
    USA
    Posts
    69
    What about various resolutions? Will the pecerntages automatically change to make things fit right in different resolutions?

    Lets say I have a nav div off to the left, then a big one for my content and all.... And I get it looking nice at 1024x768... but a user views my site with 800x600. If the div is too large it'll automatically scroll the page just like a normal table would do? And if I left a 10% buffer around all of the page and the edges it would still keep that even if it scrolled? (hope this makes sense) This of course can easily be fixed by designing your site with that res. in mind, but just curious about the concept.

  10. #10
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Ahh.

    Well, thats the advantage of using percentages. Its 10% of whatever screen res its being displayed in.

    I usually design an entire page in 800*600 using percentages, get it how I like it, then up the res on my monitor to make sure it still looks fine. 95% of the time, it does.

    To be honest, probably the only disadvantage to using percentages is if the browser is res'ed less than 640, instead of a scroll bar it shrinks to fit , but who uses smaller res's than that anyway?
    I have noticed some of the pages on my tutorial have a problem with the 'back' & 'next' links at higher resolutions, am looking into that now.
    As an experiment, design a page in percentages in 1024, then minimize your browser, shrink the res, and open up the page again. Might look great
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  11. #11
    Capo's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Aug 2002
    Location
    USA
    Posts
    69
    One question I have Dean: I noticed you have your CSS comments in the head of your document. Is there any reason/advantage for having them there as apposed to having them as a seperate file that the page refers to?

    In my mind, would it not always be beneficial to keep it seperate just for less code on your pages? And an easy way to direct all the pages to the same source? I'm just curious if it's just a preference thing or if there are some advantages by leaving it in the head.

    Thanks!

  12. #12
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Only one reason I coded that page that way - so that all the css was visible if you viewed the source.

    In my normal css coding, it all goes in a *.css file. makes it easier to maintain.

    With this site, tho, it was no hassle to have the pages containing the css, because the tutorials are all using the same page. COnfused? Its a dynamic site, it always calls the page index.php , but displays different data depending on the page chosen. Notice the links are index.php?page=Syntax instead of Syntax.php . So its no hassle to have it visible. Anything I felt was tricky, I put the css in the tag itself, again, so it is visible to the beginner.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  13. #13
    Capo's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Aug 2002
    Location
    USA
    Posts
    69
    Dean, thanks for your continuing help with this.

    While I am familiar with the basic concept of having a dynamic site (in the way you did) I am not familiar with it in it's application.

    Ok, so you have one main file. Your index.php -- right? Does the site's design and layout stay the same for every page automatically? Or must you refer back to it in the other "pages" data? How do you setup the other pages? How do you get them to show up right? Is there an example of this somewhere I can see?

    thanks!

  14. #14
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya. Continued advice is not a problem, I come here to help people


    I don't know about other peoples dynamic sites, but mine is based on a text file system, simply because they are more portable than an SQL database.

    Heres how it works, without going into a lot of code...


    index.php loads. The variable 'page' has not been set. in other words, index.php?page= does not say anything. in this instance, load my default text.

    On the left, I have code ( class.quietdean.php ) that looks for a certain directory ( /data ) and looks for files with a suffix of .txt .

    For each file it finds, it fills in a link like this

    Code:
    <a href="index.php?page=filename">First Line of Text in the textfile</a>
    </a>
    basically, the first line of every file is the description of the link.

    because I made this a loop. it finds every file and lists them as a link. if the link has a variable called page, it will open variable.txt and insert it in the 'content' area of index.php instead of the default text.

    In this way, I have created a page that creates its own links from the contants of '/data' directory. How lazy am I...

    the only tricky step was the 'next' and 'back' links, for them, I created an offset array of data defining the layout/order of the pages.

    If you would like a copy of class.quietdean.php , jus say. i will email it to you happily. tho to be honest, classes are not the easiest way to get into php
    Last edited by QuietDean; 08-16-2002 at 03:52 PM.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  15. #15
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    More questions here, too, for QuietDean:

    1. First of all, it appears this system depends upon one being with a web host (server) that allows user created .php (or similar server-side) 'program' files. Is that true or is there a way to do this from any host server?

    2. What most interests me about this is the ability to place headings and/or tails on a page without having to use frames. For starters, I'd like to be able to place my generic signature and copyright notice at the bottom of each and every page by referencing just one file. At present, I add it to each and every of the 700+ .htm/.html files at my various sites.

    The same could go for a heading that would contain the actual UNIQUE URL to each page along with the generic page navigation aides. In this case, the creation process would include the unique level 3 and level 2 names (sub-domain and domain) for common .com (level 1) URLs.

    Have you done something like that with .php or some other process?



Page 1 of 2 1 2 Last

Tags for this Thread