Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: layout issue after installing slideshow

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

    Default layout issue after installing slideshow

    Hi,
    I have installed an image slideshow which works ok but i have a slight layout issue.

    Here is a link for the page i am trying to match in respect of layout.
    http://theremotedoctor.co.uk/civic.h...rollto=content

    Here is a link for the page with the issue.
    http://theremotedoctor.co.uk/profile...rollto=content

    The correct page has a static image within the black border.
    You will also see a small space between the bottom of this border & the start of the black border below it.

    The page with the slide show does not have the images nicely fit inside the black border.
    Slight gap at the top but also at the bottom.
    You will notice that the bottom black border is sat on top of the black border below it.

    Using chrome f12 button i see section#content 780x586 but on the other i see section#content 780x592 but cant put my finger on whats changing it.

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

    Default

    you are still not checking your code for errors! You have 20 errors. https://validator.w3.org/nu/?doc=htt...llto%3Dcontent

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

    Default

    Some items were advised from this forum.
    Also some are minor which isn't the cause of this issue.

    Because these are old it will take longer to research them and change as opposed to looking for the issue itself I'm trying to sort.
    I would assume every web page would flag something up as incorrect ?

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

    Default

    Yes, every page with bad html ,css, etc will cause problems.

    I forgot to post this earlier too. http://www.theremotedoctor.co.uk and http://theremotedoctor.co.uk/ should resolve to the same URL, but currently do not.
    In order to pass this test you must consider using a 301 re-write rule in your .htaccess file so that both addresses (http://example.com and http://www.example.com) resolve to the same URL.
    - If you want to redirect http://www.example.com to http://example.com, you can use this:

    Code:
    RewriteCond %{HTTP_HOST} ^www\.example\.com$
    RewriteRule ^/?$ "http\:\/\/example\.com\/" [R=301,L]
    - If you want to redirect http://example.com to http://www.example.com, you can use this:

    Code:
    RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
    Note that you must put the above lines somewhere after RewriteEngine On line.
    Last edited by mlegg; 11-26-2016 at 11:58 PM.

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

    Default

    Why is there 2 different urls shown ?

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

    Default

    somebody may type http or www at the beginning on the address bar to find your site.

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

    Default

    Ok got you.
    Is this something I've done wrong somewhere ?

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

    Default

    Morning,
    I have done as advised above.
    In my .htaccess file there was not RewriteEngine On line
    I simply added it with the code advised but get a 403 Forbidden message now.

    Code:
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
    ## EXPIRES CACHING ##
    <Files ~ "^\.(htaccess|htpasswd)$">
    deny from all
    </Files>
    Options Indexes
    order deny,allow
    <IfModule mod_headers.c>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary: Accept-Encoding
      </FilesMatch>
    </IfModule>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddType application/x-httpd-php .htm .html
    AddType video/ogg  .ogv
    AddType video/mp4  .mp4
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.theremotedoctor\.co.uk$
    RewriteRule ^/?$ "http\:\/\/theremotedoctor\.co.uk\/" [R=301,L]
    I have put this here to show you but will look again now at it.

  9. #9
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    your image problem can be resolved with this...

    Code:
    
    #slidedom img{
        display:block;
     }

    coothead
    ~ the original bald headed old fart ~

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

    Default

    Hi,
    Where would that code need to be placed.

    Thanks

Similar Threads

  1. Layout issue
    By gracexl in forum CSS
    Replies: 3
    Last Post: 04-20-2010, 06:47 PM
  2. IE layout issue
    By sepunx2 in forum CSS
    Replies: 0
    Last Post: 02-02-2010, 03:28 PM
  3. Menu Layout issue
    By ongjoh in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-22-2009, 12:29 PM
  4. Replies: 1
    Last Post: 06-23-2009, 11:15 PM
  5. Layout issue in IE6
    By robx1971 in forum CSS
    Replies: 0
    Last Post: 11-14-2007, 06:09 PM

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
  •