Tag Info

Hot answers tagged

3

why is using multiple consecutive line breaks in HTML considered a bad practice Because it breaks the fundamental principle of separation of concerns: by mixing the "content" and "presentation" layers. By using multiple <br>s to create "margins" you are embedding the presentation in the content. To change the "margins" you need to change the ...


2

These URLs are valid only when present in an HTML document, and "some online SEO tools" are sort of incorrect to report this as a problem. What happens here is that you have used numeric HTML entities to represent various characters, but the URL format does not treat these as encoded characters that should be decoded to get the URL that will actually be ...


2

No.... image sprites are not good for photos and complex pictures. This is because the file size would simply become far to big and would delay the page from loading and increasing the time it takes for users to see any content. Sprites are good for basic template styling images that get reused across the site, this for many reasons is because it becomes ...


1

Google has a spec for AJAX (SPA) applications, https://developers.google.com/webmasters/ajax-crawling/docs/specification. basically you need to provide the server the same content, but by using classic web site (request-response) technology. I call it a core site.


1

Because a line break is used to break a line and not add margin. The effect may appear the same but the semantics are not. If you want a margin on a div, use "margin". You have people who turn CSS off? I doubt that. You have visitors with javascript turned off? Those who know how to do that are the same who know what to expect as a result.


1

The thumbnail is not produced by the BlueSpice extension but by thumb.php. Your example has f=/bluespice/Avatars/thumb/BS_avatar_3.png/40px-BS_avatar_3.png, just replace 40px- with 32px-.


1

Using CSS pseudo classes I’m going to use the following CSS pseudo classes to align the images: :nth-child(a) for a = 1 ⇒ :first-child :nth-last-child(a) for a = 1 ⇒ :last-child :nth-of-type(a) for a = 1 ⇒ :first-of-type :nth-last-of-type(a) for a = 1 ⇒ :last-of-type So I can select the ath image (of images). This approach completely separates ...


1

Just create your own tiny framework A very simple version of your request would be something like this: <?php $templateLocation = $_SERVER['DOCUMENT_ROOT'].'/templates'; $defaultPage = 'home'; // Open your page with the frame, the footer , header etc $template = file_get_contents($templateLocation.'/main_template.html'); // Get the page from the url, ...



Only top voted, non community-wiki answers of a minimum length are eligible