Html and Css Coding Help

Discussion in 'HTML & Website Design' started by sjleads2, Oct 10, 2011.

  1. #1
    When trying to to html, how do I keep the header and footer the same for each links and page that opens from the main front page. Thanks
     
    sjleads2, Oct 10, 2011 IP
  2. LeeV18

    LeeV18 Greenhorn

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    LeeV18, Oct 10, 2011 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    Never, EVER listen to this guy again.
     
    drhowarddrfine, Oct 10, 2011 IP
  4. tom.andrial

    tom.andrial Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    php is not like HTML, this is programming language not a markup language.


    @sjleads2 : You can use your home page link in header and footer both place.
     
    tom.andrial, Oct 10, 2011 IP
  5. Visum Designz

    Visum Designz Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If I understand the question completely which I think I do. I would Copy the code and keep pasting it in the right area inside the body. Make sure all the files are directed with the right path ex images and css files, this is if your images are not showing up properly in the page.
     
    Visum Designz, Oct 10, 2011 IP
  6. yho_o

    yho_o Well-Known Member

    Messages:
    354
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    #6
    i didnt get it!, try to use google translator or so, if english is not your first lang, Good luck
     
    yho_o, Oct 11, 2011 IP
  7. alimoula

    alimoula Peon

    Messages:
    114
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I can't understand your question but there is lot of difference between HTML and PHP . if you want to have header and footer same for all pages of your web site then this work can be done in PHP using page slicing..
     
    alimoula, Oct 12, 2011 IP
  8. CMNS

    CMNS Well-Known Member

    Messages:
    95
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #8
    to make the header and footer the same in HTML, you can only copy the element's code to all your other files
     
    CMNS, Oct 14, 2011 IP
  9. alimoula

    alimoula Peon

    Messages:
    114
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You should use php just read some thing about page slicing and you will be able to perform this work easily.....
     
    alimoula, Oct 17, 2011 IP
  10. egmixer

    egmixer Active Member

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #10
    two ways to do it

    1- with HTML only

    you will make a div of header and div for footer and paste them into the new page, then put the content in between


    2- with server side programming langauge like PHP,

    you can make a template, which for ex. a file that contains the header (header template), and link to it in the page on the top of your code with one line of code

    and another file that contains the footer(footer template) and link to it in the bottom of your page

    its called include function
     
    egmixer, Oct 19, 2011 IP
  11. sherwina

    sherwina Well-Known Member

    Messages:
    497
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    165
    #11
    I need help on css. I have already the css code and i want to chnge the style of it. Please help thanks
     
    sherwina, Oct 19, 2011 IP
  12. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #12
    How can anyone help you when we have NO idea what you have in your CSS code???
     
    mmerlinn, Oct 19, 2011 IP
  13. egmixer

    egmixer Active Member

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #13
    I did this
     
    egmixer, Oct 19, 2011 IP
  14. sherwina

    sherwina Well-Known Member

    Messages:
    497
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    165
    #14
    @ egmixer Thanks for helping me out buddy
     
    sherwina, Oct 19, 2011 IP
  15. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #15
    Huh? You did what? I don't see anything that you did. All I see is the above quote.
     
    mmerlinn, Oct 20, 2011 IP
  16. alimoula

    alimoula Peon

    Messages:
    114
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    my dear please clear your question .did you you want to use a single header on every page of your website.
     
    alimoula, Oct 21, 2011 IP
  17. Armfun

    Armfun Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #17
    For example you can use php. You can creat header.php and footer.php then include it in your pages. It is very simple. I do not think you can do it in html.
     
    Armfun, Oct 23, 2011 IP