Problem with css

Posted on 2013-06-04
Last Modified: 2013-08-19
Hi i using hubspot cms to create a blog. I try to make mobile optimized blog. The problem i put code for changing header and it works in all browser except ie.

I try to call them they told me they do not have any block or something. I try many different way to fix it and still can not found any way to fix it.
Question by:umaxim
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 53

Accepted Solution

COBOLdinosaur earned 250 total points
ID: 39219889
Well there are some real problems here.  The HTML validator throws 83 errors. Most of them are just because a lot of the code is junk, but there are also some structural issues.  Even after you fix them there are still going to be problems with IE because of the doctype and other crude at the beginning of the page you need to replace:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="" xmlns:fb="">
<head id="Head"><meta id="Ie8Emulate" http-equiv="X-UA-Compatible" content="IE=8">


<!doctype html>
<html  lang="en">
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1" />

Even then do not expect to get consistent rendering across all mobile, because most of the mobile browser have quirks and non-standard implementations.

LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 250 total points
ID: 39219890
Holy cow!  For what hubspot charges they should be holding your hand every step of the way.

There templates work like this and you can buy your own from their marketplace

They charge about $1,000 per month.  If you are just testing this out, before you put any time make sure you understand the costs.   From what I was told the end of last year when I tried it out (again), they are focusing more on adding tags to your own blog rather then using theirs.  

I would just get yourself a ready made template.

Author Comment

ID: 39220118
I can not change code i can only change css.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 39220141
I know how to fix looking problem but the most biggest problem css
@media (max-width: 980px) { is not working in ie. So for media tag i need html5 ?

Author Comment

ID: 39220144
If yes is it possible to change to html5 using jquery or javascript.
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39220249
I think that is something that sounds like it can be done but shouldn't...
LVL 53

Expert Comment

ID: 39222963
Changing the doctype dynamically should do a very nice job of blowing up the page under some conditions.  If there are any validation problems based on the new doctype I expect the browser would choke.  The page would probably have to be valid for both the old and the new doctype otherwise the result would be really unpredictable.

I'm not even sure the browser would respond to the change because of the readonly property of doctype. Given the number of errors in the page I would expect it to result in either a meldown or it would just get ignored.


Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bottom border change 5 26
Change of column alignment in div 2 27
Google Page Speed Insight with srcset 4 150
Top Aligning Inner Divs 5 22
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question