Jump to content

divinedesigns1

Members
  • Posts

    1,200
  • Joined

  • Last visited

Posts posted by divinedesigns1

  1. hello all nice to see u guys again, but i have a problem, how can i go about making a gallery which have 2 parts, first part is the big part which display all clicked photo and the second part which holds the small photos. that part is easy i need to know how to make the small photos display in the big part when i clicked on it

  2. A little bit of explaining... First when you set the HTML to 100% its going to extend the whole box to the viewport. Then if you add any Padding or a Border to the 100% HTML it will then make the total size the viewport + padding + border which is larger than the viewport obviously. Then when you added overflow: hidden on top of that anything that did exceed the original 100% which is the viewport was hidden. The same concept is true for the body and any div you will ever do. I do not recommend ever adding padding or borders to the HTML or Body, and never make a border around your webpage cause it will never render correctly without javascript. Hope that helps.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Fully Div & CSS Website</title><style type="text/css">html {height: 100%;margin:0px;overflow: hidden;}body {height: 100%;margin:0px;padding:0px 20px 0px 20px;background:#000;border:1px solid #C00;}#main-wrap {height: 100%;margin:0px;padding:0px 20px 0px 20px;background:#fff;height:inherit;border:1px solid #C00;}</style></head><body><div id="main-wrap"><div id="secondary">This is the main wrap</div></div></body></html>

    thanks, but this wouldnt be a real website, im just messing around with html to find different ways to create websites using divs and css
  3. ok, im having a problem with displaying the right side padding as it should the left side display all 3 layers of padding but when it comes to the right side it does not display any type padding on any of its layers i dont see anything with the css nor the html for this but ill put it below this sentence

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Fully Div & CSS Website</title><style type="text/css">html {width:100%;height:100%;overflow:hidden;margin:0px;padding:0px 20px 0px 20px;border:1px solid #C00;}body {width:100%;height:100%;margin:0px;padding:0px 20px 0px 20px;background:#000;border:1px solid #C00;}#main-wrap {width:100%;margin:0px;padding:0px 20px 0px 20px;background:#fff;height:inherit;border:1px solid #C00;}</style></head><body><div id="main-wrap"><div id="secondary">This is the main wrap</div></div></body></html>

    as you can see, the main-wrap, body and html have a left and right padding of 20px and a width of 100% but the padding doesnt display at all, can you check and let know if i did anything wrong? all opinions are accepted

  4. it will be designed in table
    ingolme answer it already, use the table element for that, off topic: will you be adding the information by yourself? or will it be added dynamically?
  5. theres a function in php which check to see if the email is real or not, im not 100% sure on how to write it but i believe its

    filter_var($email, FILTER_VALIDATE_EMAIL);

    im not good with js so i use php to validate pretty much everything

  6. just to dig a little deeper, when you display a post on a page, one technique is have its unique id from the DB (say post_id, and ideally the primary key of the posts table) as a hidden field in the form that submits the comments. When someone comments, you add the comment to the comments table, and fill in a "post_id" column in the comments table, which is the value of that hidden field, and is a foreign key to the post table. This maps comments to posts. So whenever you display a post, you look in the comments table for all comments with a post_id that matches the post_id from the posts table.
    ok thanks, ill try that...but i have the post_id already in the comment tabel in the db, but ill try this one and see sup thanks
  7. hey guys, im having a little problem getting the comments for 2 different post, to match up. i have comment 1 that belong to post 1, and comment 2 that belong to post 2, but it doesnt stay on the post it belongs, instead i end up with comment 1 n 2 on post 1 n 2. how can i get this right? i try $_get[id] but that still didnt work either. any idea?

  8. well i have your source code in dreamweaver atm, and i move the meny div below the header div and when i mininize the browser it remain where it should be, im still trying to fix the part where your images are once i do ill give you the code so you can recode it

  9. No it does not go to do with that. You appernatly cant help me. But would you know any web templates that look like this. With a header, middle content and footer stretch to the sides?
    well it never happen to me when i create a website, i can recreate the layout for you and email it to you if you wish
  10. might want to change this (container)

    margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;[/code to [codemargin-top:0px;margin-right:auto;margin-bottom:0px;margin-left:auto;[/code]

    in the header you have padding-top: 85px; you can replace that with line-height instead (up to you tho) well thats all

  11. :) challenging yourself is the best way to learn something, i do it all the time -_- even when it give me a headache ( js animation) lol but its fun tho im way better in php then i was a few years ago
×
×
  • Create New...