Results 1 to 5 of 5

Thread: Some pointers required please

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Some pointers required please

    Hi,
    Ive researched this but did not see my answer.
    Here is the page in question http://www.theremotedoctor.co.uk/ztest.html

    My problems are the following.
    Unable to center phone.
    Unable to get phones dark blue background inline with the pages outer blue borader.

    I currently have the css written at line 163 whilst my text is at lline 225
    After this request is sorted i need to copy/paste this phone/css etc into 50 pages elsewhere.
    How if possible can the css & text be written in one place as line 225 so its easier to copy/paste to the other pages without having to copy things twice.
    If you understand what i mean.

    Im sorry if im a nuisance but trying my best before i ask.
    Last edited by Beverleyh; 02-10-2016 at 07:52 PM. Reason: Resolved

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Firstly, all that CSS should be in a separate file which is included by adding one line into the page header:

    Code:
    <link rel="stylesheet" type="text/css" href="your_style_sheet.css">
    Secondly, there are better solutions than copy and pasting the same code into 50 different files. The old fashioned way was to use Server Side Includes and either rename your source files to .shtml or use XBitHack if your server is Unix (see here). However, a much simple solution is to simply rename your .html files as .php and then use the PHP include directive to add the requisite file at the correct place in your source file.

    Code:
    <?php include 'myfile.html'; ?>

  3. The Following User Says Thank You to styxlawyer For This Useful Post:

    theremotedr (02-09-2016)

  4. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    to center the phone image find the phone in the bottom of your css .phonembutton
    change text:middle to text-align:center;

  5. The Following User Says Thank You to mlegg For This Useful Post:

    theremotedr (02-09-2016)

  6. #4
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Phone centered, i used : by mistake and not ;
    This page of code will be put into ebay not my web site.

  7. #5
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Think I got this now but will check in the morning.
    Replace
    Code:
    width:100%
    with
    Code:
      
      right: 15px;
      left: 15px;

Similar Threads

  1. Resolved Remove Arrow pointers in ddlevelsmenu
    By maximumovertime in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 12-17-2008, 12:33 AM
  2. Replies: 4
    Last Post: 07-14-2008, 08:34 AM
  3. Why are C++ pointers not overloaded?
    By Trinithis in forum Other
    Replies: 1
    Last Post: 10-12-2007, 05:01 PM
  4. C++: Pointers vs. References
    By Trinithis in forum Other
    Replies: 1
    Last Post: 09-05-2007, 01:21 PM
  5. Replies: 10
    Last Post: 06-10-2006, 12:36 AM

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
  •