Everything posted by daydreamer
-
Move my hosting from UK server to France
I'm looking at moving my website some .co.uk & some .com's from a UK hosting company to France. Just wondered if this will affect anything in regards to google UK? All my domains DNS also run through Cloudflare.
-
Multiple CSS link styles
Worked perfect thanks been driving me crazy
-
Multiple CSS link styles
All my site links are take the style of .post and not using the site wide link styles links in <div class="post">Link</div> are working fine My standard site wide link styles a:link,a:visited,a:active { color: #3599F3; outline: 0; margin: 0px; text-decoration: none; -o-transition: .5s; -ms-transition: .5s; -moz-transition: .5s; -webkit-transition: .5s; transition: .5s; } a:hover, a:focus { color: #3B5A9F; -o-transition: .5s; -ms-transition: .5s; -moz-transition: .5s; -webkit-transition: .5s; transition: .5s; } Link styles for div .post a:link,a:active,a:visited { font-size:16px; font-weight:700; color:#595959; } .post a:hover { color:#999999; }
- Buying website traffic worth it?
- Buying website traffic worth it?
-
Box Sizing image IE8 not working
This one <!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" xml:lang="en" lang="en">
-
Box Sizing image IE8 not working
I am using box sizing on an image in my css but not seem to work with IE8, could anyone advise? This is my img css .blog-container img { max-width: 100%; background-color: #FCF6F0; padding: 10px; border: 1px solid #F8EDE2; -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box; }
-
How would you code this for html & css?
-
Domain redirect and seo
I have my main site and also a keyword targeted domain which I want to redirect to my main site. How do I seo and redirect my keyword domain? Thanks
-
Responsive or not?
Just wondered if I should start making all sites responsive, there seems to be a few different ways to do it and my minds working over time.
-
Responsive or not?
Just wanted other views on responsive website Responsive or Not?
-
Copyright website content?
How do I go about copyrighting my website and content etc?
-
Menu item outside of div in IE8 Only
Hi, My menu items display outside my div but only in IE8 if anyone could help? Thanks Screen Shot attached And my css #main-menu { height: 38px; border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; border-top-color: #D4D4D4; border-bottom-color: #D4D4D4; width: 980px; } #main-menu ul { list-style-type: none; /* Fix the Stupid IE6 Bug */ border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; } #main-menu ul li { background-image: url(../images/top-menu-divider.gif); background-repeat: no-repeat; background-position: right center; float: left; } #main-menu ul li a { display: block; color: #808080; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-transform: uppercase; padding-left: 20px; padding-right: 20px; padding-bottom: 0px; padding-top: 0px; line-height: 38px; } /* Root Level Link Formatting */ #main-menu ul li a:hover, #main-menu li a:focus { color: #808080; border-top-color: #8AC600; border-top-width: 1px; border-top-style: solid; margin-top: -1px; } #main-menu li a:active, #main-menu ul li a.active { color: #8AC600; margin-top: -1px; line-height: 38px; } /* Current page Customisations*/ #main-menu li.menu-current a { color: #8AC600; background-image: url(../images/top-menu-arrow.gif); background-repeat: no-repeat; background-position: center top; border-top-width: 1px; border-top-style: solid; border-top-color: #8AC600; margin-top: -1px; } #main-menu li.menu-current a { } /* 2nd Child menu */ #main-menu .menu li ul { position: absolute; display: none; border-top-width: 2px; border-top-style: solid; border-top-color: #8AC600; background: #ffffff !important; -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4); -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4); box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4); margin: 0; padding-top: 10px; padding-right: 20px; padding-bottom: 10px; padding-left: 20px; } #main-menu .menu li ul li { text-align: left; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #D4D4D4; background: none; width: 240px; } #main-menu .menu li ul a { color: #818181; font-size: 11px; font-weight: normal; text-transform: uppercase; } /* 2nd Child link hover */ #main-menu .menu li ul a:hover { color: #4b4c4d; color: #8AC600; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; margin: 0px; } /* Show and hide */ #main-menu .menu li:hover ul, #main-menu .menu li a:focus ul, #main-menu .menu li.subMenu ul {display: block;} #main-menu .menu li ul ul { display: none;} #main-menu .menu li:hover ul ul, #main-menu .menu li.subMenu ul ul {display: none;} #main-menu .menu li:hover ul, #main-menu .menu li li:hover ul, #main-menu .menu li.subMenu ul, #main-menu .menu li li.subMenu ul {display: block;} /* Positioning the Pop-out Drops */ #main-menu li { position: relative; z-index: 600; } #main-menu ul ul ul { position: absolute; left: 100%; top: 1px; }
-
Free Stock Images?
Is there such a site to get free stock images to se on projects? Thanks
-
SEO who to use?
Hi, Can anyone recommend a company to do some seo for my site? Thanks
-
My site in google?
My website title does not show. e.g: this is a website title just shows My Name even though I have a title
-
My site in google?
Hi, When I google my site e.g: My Site with two words I show up with only my name... My Name When I google it as one word it shows my websites title, anyone know why this is? Thanks
-
Help with php error
Sorry here is the code, and the error is showing at line 180 and 182 which is for ( ; do { $counter <= $lastpage; ++$counter ) function seoclean_ad( $uc_string ) { $seo_clean_string = strtolower( "{$uc_string}" ); $seo_clean_string = str_replace( " ", "_".SS_SEOSPREP."", "{$seo_clean_string}" ); $seo_clean_string = str_replace( "&", "and", "{$seo_clean_string}" ); $seo_clean_string = preg_replace( "[^A-Za-z0-9_-]", "", $seo_clean_string ); $seo_clean_string = "{$seo_clean_string}".SEO_SUFFIX.""; return $seo_clean_string; } function prepare_template_output( $data ) { if ( is_array( $data ) ) { $ret = array( ); foreach ( $data as $key => $value ) { $ret[$key] = prepare_template_output( $value ); } return $ret; } if ( !is_numeric( $data ) ) { $data = stripslashes( $data ); $data = trim( $data ); $data = htmlentities( $data ); } return $data; } function ukDate( $inDate ) { global $outDate; list( $uYear, $uMonth, $uDay ) = explode( "-", "{$inDate}" ); $outDate = "{$uDay}-{$uMonth}-{$uYear}"; return $outDate; } function write_cache( $f_cache_data, $f_cache_file ) { if ( !( $fp = fopen( $f_cache_file, "w" ) ) ) { trigger_error( "Error opening cache file" ); exit( ); } if ( !flock( $fp, LOCK_EX ) ) { trigger_error( "Unable to lock file" ); exit( ); } if ( !fwrite( $fp, serialize( $f_cache_data ) ) ) { trigger_error( "Error writing to cache file" ); exit( ); } flock( $fp, LOCK_UN ); fclose( $fp ); } function read_cache( $f_cache_file ) { if ( !file_exists( $f_cache_file ) ) { trigger_error( "Invalid cache file" ); exit( ); } return unserialize( file_get_contents( $f_cache_file ) ); } function list_options( $arrayname, $mode ) { global $row; global $row_2; $sarray = ""; foreach ( $arrayname as $v ) { if ( !isset( $row['salutation'] ) && $row['salutation'] == $v || isset( $row_2['salutation'] ) && $row_2['salutation'] == $v ) { if ( !isset( $mode ) ) { echo "<option value=\"".$v."\" selected>{$v}</option>\n"; } else { $sarray .= "<option value=\"".$v."\" selected>{$v}</option>\n"; } } else if ( !isset( $mode ) ) { echo "<option value=\"".$v."\">{$v}</option>\n"; } else { $sarray .= "<option value=\"".$v."\">{$v}</option>\n"; } } return $sarray; } function genprevnext( $total_pages, $position, $nresults, $scriptis, $extras ) { global $shopurl; global $seoFriend; global $connection; global $instdir; global $smode; if ( !empty( $smode ) ) { $smodebits = "{$smode}/"; } else { $smodebits = ""; } if ( !empty( $_GET['smode'] ) ) { $smodebits = "".htmlentities( $_GET['smode'] )."/"; } else { $smodebits = ""; } $disppages = intval( $total_pages / $nresults ); if ( $total_pages % $nresults ) { ++$disppages; } if ( $nresults <= $position ) { $current_page_num = $position / $nresults + 1; } else { $current_page_num = 1; } $limit = $nresults; $stages = 3; $position = $position; $page = $position / $nresults + 1; if ( $page ) { $start = ( $page - 1 ) * $limit; } else { $start = 0; } if ( $page == 0 ) { $page = 1; } $prev = $page - 1; $next = $page + 1; $lastpage = ceil( $total_pages / $limit ); $LastPagem1 = $lastpage - 1; $paginglinks = ""; if ( 1 < $lastpage ) { if ( 1 < $page ) { $prevoffset = $position - $nresults; $paginate .= "<a href=\"".$scriptis."?position={$prevoffset}&nresults={$nresults}{$extras}\">« Prev</a>"; } else { $paginate .= "<span class='pagination-disabled'>« Prev</span>"; } if ( $lastpage < 7 + $stages * 2 ) { $counter = 1; for ( ; do { $counter <= $lastpage; ++$counter ) { $newoffset = $counter * $limit - $limit; if ( $counter == $page ) { $paginglinks .= "<span class=\"pagination-current\">".$counter."</span>"; } else { $paginglinks .= "<a href=\"".$scriptis."?position={$newoffset}&nresults={$nresults}{$extras}\">{$counter}</a>"; } break; } } while ( 1 ); } else if ( 5 + $stages * 2 < $lastpage ) { if ( $page < 1 + $stages * 2 ) { $counter = 1; for ( ; $counter < 4 + $stages * 2; ++$counter ) { $newoffset = $counter * $limit - $limit; if ( $counter == $page ) { $paginglinks .= "<span class=\"pagination-current\">".$counter."</span>"; } else { $paginglinks .= "<a href=\"".$scriptis."?position={$newoffset}&nresults={$nresults}{$extras}\">{$counter}</a>"; } } $paginglinks .= "..."; $newoffsetlm1 = $LastPagem1 * $limit - $limit; $newoffsetlp = $lastpage * $limit - $limit; $paginglinks .= "<a href=\"".$scriptis."?position={$newoffsetlm1}&nresults={$nresults}{$extras}\">{$LastPagem1}</a>"; $paginglinks .= "<a href=\"".$scriptis."?position={$newoffsetlp}&nresults={$nresults}{$extras}\">{$lastpage}</a>"; } else if ( $page < $lastpage - $stages * 2 && $stages * 2 < $page ) { $paginglinks .= "<a href=\"".$scriptis."?position=0&nresults={$nresults}{$extras}\">1</a>"; $paginglinks .= "<a href=\"".$scriptis."?position={$limit}&nresults={$nresults}{$extras}\">2</a>"; $paginglinks .= "..."; $counter = $page - $stages; for ( ; $counter <= $page + $stages; ++$counter ) { $newoffset = $counter * $limit - $limit; if ( $counter == $page ) { $paginglinks .= "<span class=\"pagination-current\">".$counter."</span>"; } else { $paginglinks .= "<a href=\"".$scriptis."?position={$newoffset}&nresults={$nresults}{$extras}\">{$counter}</a>"; } } $paginglinks .= "..."; $newoffsetlm1 = $LastPagem1 * $limit - $limit; $newoffsetlp = $lastpage * $limit - $limit; $paginglinks .= "<a href=\"".$scriptis."?position={$newoffsetlm1}&nresults={$nresults}{$extras}\">{$LastPagem1}</a>"; $paginglinks .= "<a href=\"".$scriptis."?position={$newoffsetlp}&nresults={$nresults}{$extras}\">{$lastpage}</a>"; } else { $paginglinks .= "<a href=\"".$scriptis."?position=0&nresults={$nresults}{$extras}\">1</a>"; $paginglinks .= "<a href=\"".$scriptis."?position={$limit}&nresults={$nresults}{$extras}\">2</a>"; $paginglinks .= "..."; $counter = $lastpage - ( 2 + $stages * 2 ); for ( ; $counter <= $lastpage; ++$counter ) { $newoffset = $counter * $limit - $limit; if ( $counter == $page ) { $paginglinks .= "<span class=\"pagination-current\">".$counter."</span>"; } else { $paginglinks .= "<a href=\"".$scriptis."?position={$newoffset}&nresults={$nresults}{$extras}\">{$counter}</a>"; } } } } $paginate .= $paginglinks; if ( $page < $counter - 1 ) { $newoffset = $position + $nresults; $paginate .= "<a href=\"".$scriptis."?position={$newoffset}&nresults={$nresults}{$extras}\">Next »</a>"; } else { $paginate .= "<span class=\"pagination-disabled\">Next »</span>"; } } if ( $nresults < $total_pages ) { echo $paginate; } }
-
Help with php error
Hi could anyone help me with these errors? $counter = 1; for ( ; do { $counter <= $lastpage; ++$counter ) { $newoffset = $counter * $limit - $limit; if ( $counter == $page ) { $paginglinks .= "<span class=\"pagination-current\">".$counter."</span>"; } else { $paginglinks .= "<a href=\"".$scriptis."?position={$newoffset}&nresults={$nresults}{$extras}\">{$counter}</a>"; } break; } } while ( 1 ); } else if ( 5 + $stages * 2 < $lastpage ) { if ( $page < 1 + $stages * 2 ) { $counter = 1; for ( ; $counter < 4 + $stages * 2; ++$counter ) Thanks
-
Correct way to redirect domains - cPanel?
Hi, Just wondered what is the correct way to redirect domain with cpanel to avoid spamming google etc? Thanks
-
Fatal error: Call to undefined function apache_get_modules()
Hi, Trying to install Open Blog but getting an error if anyone could help? Fatal error: Call to undefined function apache_get_modules() in /home/site/public_html/install/includes/functions_common.php on line 22 function get_mod_rewrite_status() { $apache_modules = apache_get_modules(); if (in_array('mod_rewrite', $apache_modules)) { return TRUE; } else { return FALSE; } } Thanks
- Mobile Website
-
Mobile Website
Hi, Could anyone point me in the right direction for adding a mobile website please? Thanks
-
Vertical align multiple content in div
Thought I solved it, but not quite right #header { margin-right: auto; margin-left: auto; height: 280px; margin-top: 0px; margin-bottom: 0px; } #header .wrap { height: 78px; } #header .wrap-intro{ height:20.2em; position: relative; top: 50%; } #header .wrap-intro h1 { padding: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; font-size: 3.2em; font-family: 'Asap', sans-serif; color: #5E5E5E; } #header .wrap-intro h2 { padding: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; font-size: 2.4em; font-family: 'Asap', sans-serif; color: #5E5E5E; } #header .wrap-intro p{ font-size: 1.6em; font-family: 'Asap', sans-serif; ; } #header .wrap-intro ul li { font-size: 1.8em; padding: 0px; color: #5E5E5E; font-style: italic; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } #header .left { float: left; width: 640px; padding-right: 40px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; height: 20.2em; margin-top: -10.1em; position: relative; } #header .right { width: 280px; float: right; height: 20.2em; margin-top: -10.1em; position: relative; } #header .right p { line-height: 1em; }
-
Vertical align multiple content in div
Thanks for that really appreciate it What I am aiming to do is vertical align the content in the left and right div, which is inside the wrap-intro div. <div class="wrap-intro"> <div class="left"> <h1>Welcome to my website</h1> <p>Here is a short paragraph</p> </div> <div class="right"> <h2>Call or contact us online</h2> <ul> <li>123456789</li> </ul> <a href="#" class="large button blue">Enquire Online</a> </div> </div> Hope you understand what I mean, I have tried the link you posted and this does not seem to work for some reason, not sure if it will with multiple content? Thanks