I've created a simple html and it looks perfectly
But when I use it as maintenance for my wordpress site it has lesser height that expected. CSS and inner HTML are completely the same, I've just inserted html inside maintenance.php
There are some screens to show what I mean:
The problems seems to be that height is not full screen, but I can't tell the difference
Related
I'm working on a WordPress site and have an array of "icon blocks" that contains a selector for an svg, and a few other details I need for each icon block. In my template file I'm looping over these blocks and using wp_remote_get() to pull the contents of the selected svg file and insert it into my page's html.
Although I'm pulling back the contents of three unique files the first file is being displayed 3 times, here is a screenshot (This is in Chrome):
However, if I open the same page in Safari I get the same repeating icons, but with a different icon. Here is the Safari screenshot:
If you run a dif on the svg's on the page, they are indeed different svgs.
Any help would be appreciated. Here is a link to the staging site if you want to look at it there.
Make sure to use unique ids - the three SVG snippets repeat some. The lines
<clipPath id="clip-path">
and
<g style="clip-path:url(#clip-path)">
After importing they are all part of the same document, and references fail.
I've got a menu, links within it are sending user to e.g. ?menu=home but there are many other links. I wanted to use $_GET[""]; to manage content of website by switch i.e.
if ($_GET["menu"] == "home"), everything looks fine, I have background, a website, pictures and stuff, but each time you change ?menu by clicking on other links than itself, it flickers, for about 0.5 second it is white and then website loads.
Now that wouldn't be a problem if website would be bright like StackExchange, unfortunately my website orbits around dark colors, such flikker throws off the feeling of smoothness on website.
Is there a way to get rid of that white short flicker?
load your external css file in section.
set background to html or body element in your css file.
I think your problem is that css is loaded after content so styles are only applied after that and default html and body background is white.
I am using TCPDF to create PDFs with PHP. Everything works very nice, except when text would be placed where the footer resides. In my example, the text is shown only half, the rest is behind the footer. Is there an option which defines to put it on the next page?
Besides that, my PDFs differ from print to print, some have 1 page, some 2 or more. Is it possible to say that a specific text should only be placed on the page when it fits completely? if not, it should go to the next page.
I already have this in my code, but it doesnt help, the text is still cut.
$pdf->SetAutoPageBreak(true, 25);
I am creating the PDF by creating a huge HTML string and print that to the PDF using writeHTML. This is how it looks, the bold text on top should go to the next page, its hidden behind the footer.
Thanks!
We are in the process of importing some old pages from our legacy website which was designed in tables into our new DIV based layout. Our site is built on a PHP include system, so we have our pages split into three components; header, body, and footer. These old pages need to be pulled in for our launch of revision 1.0, and then as we get all of the wrinkles ironed out, we will redesign.
Our header component is working out just fine, and the body content displays as it should, but unfortunately the existing footer element plugs into the bottom of the table. Our footer for the new design extends for 100% of the width, but the existing table only allows for 960px width. Thus our footer is getting cut off.
We are trying to find a dynamic solution, either a using JavaScript, or the jQuery Attr() call to dynamically effect the table dimensions to allow the footer to extend to the edge of the page, yet everything I have tried does not modify the table dimensions or allow overfow to show at all.
Here are a couple of screenshots for you to see what I am talking about.
Div layout:
Table Layout:
If you like to take a peek at the code, you can look at my Demo Page, but just know that this is a demo version which is not using PHP to pull in the components. Its a simple HTML/CSS based layout I have been using to search for alternatives. (I'm not a PHP guy)
We are trying to avoid having to go through hundreds of documents and cutting and pasting the footer in below the table, or having to modify any other code by hand. If we could just include a CSS or JavaScript doc in the header that would render a workaround is the ideal solution.
You can also make a div with the footer Background - separate from the contents and underneath. Put a div with the same css styles as 'footer' after your element. Then you can take the background image (footer_bg.jpg repeat-x) off of footer.
See campdavidozarks.org for a website I made with the same idea.
Center the table, and use the same footer-background on the parent, 100% width element, too with alignment to the bottom and no-repeat on y. Done. Pure CSS solution.
I have a php page that generates a pdf using mpdf (php to pdf).. So when the users goes to this page the pdf is generated.. I have decided that rather then output the pdf to the browser I will email it to them.. That is all fine and works great.. So at the end of the pdf generating code I put the code for the html page to show.. Like a brand new page.. All works perfectly except for in IE.. where the layout is all messed up.. BUT if I put the html code before the pdf generating code it all looks fine.. and if I put the html in its own page it all looks fine.. Something in the pdf generating code is messing with IE..
So question is.. What about if I link the pdf generating page to the html page..
ie have two pages.. one php page with the html code saying what I want displayed.... and then link to the pdf generating code.. like include("pdfpage.php"); Include won't work, but anything else? Function?
Ideas? Stuck.
Thank you
You might try to wrap your PDF generation code up and try to not let it interfere with your HTML page.
A starting point is ob_start(). You can start an output buffer before generating your PDF
. That captures any output your PDF generation code might produce. You can then have a look at it, dispose of it or do whatever you like with it.
That way, no left-overs will be interfering with your HTML page.