www.webdeveloper.com
Results 1 to 11 of 11

Thread: Problem with display of webpage in Internet Explorer

  1. #1
    Join Date
    Jun 2014
    Posts
    13

    Problem with display of webpage in Internet Explorer

    Hi Guys,
    I was just trying to make a website while learning css and html. i wrote the following code but it shows perfectly in chrome, firefox but in internet explorer its not showing exactly like chrome not font not hove option Please help me i am new in this field.

    Web display in IE : http://s4.postimg.org/vh1neyihp/image.png

    Web display in chrome and firefox: http://s28.postimg.org/pm2a1vvxp/chrome.png

    Code:
    <html>
    
    <title>My Home Page</title>
    
    <head>
    <link href='http://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'>
    <link rel="shortcut icon" href="http://pbs.twimg.com/media/BDRs9CpCEAEGIXU.png"/>
    <style>
    
    body {
    background-color:#fff;
    font-family: 'Fjalla One', sans-serif;
    color:#F5FBEF;
    min-height:1500px;
    }
    
    .header {
        width: 100%;
        border-bottom: 2px solid #04B4AE;
        height:50px;
        background:silver;
        position:absolute;
        top:0px;
        right:0px;
        left:0px;
        z-index:-1;
    }   
    
    
    h1,h3,h4 {
    text-align: center;
    } 
    
    
    
    
    #wrap {
    	width:100%;
    }
    
    
    
    .menu {
        width: 15%;
        padding: 10px;
        margin: 0px;  
        float:left;
        background-color:#04B4AE;
        border-bottom: 5px solid #0B615E;
        border-top: 5px solid #0B615E;
        
        
    }
    
    .line{
    
    height:1px;
    
    background:white;
    
    border-bottom:1px solid white;
    
    }
    
    .arrow-down {
    	width: 0; 
    	height: 0; 
    	border-left: 10px solid transparent;
    	border-right: 10px solid transparent;
    	display:inline-block;
    	border-top: 10px solid #fff;
    }
    
    h2 {
    display:inline-block;
    
    }
    
    a:link, a:visited {
        display: block;
        font-weight: bold;
        color: #ffffff;
        background-color: #04B4AE;
        width: 95%;
        text-align: center;
        padding: 5px;
        text-decoration: none;
    }
    
    a:hover, a:active {
        background-color: #fff;
        color:#04B4AE;
    }
    
    #mcon
    {
       min-height: 1000px;
       margin: 0 0 0 250px;
       padding: 20px;
       background:#F2F2F2;
       border: 2px solid #04B4AE;
       color:#585858;
    }
    
    </style>
    
    </head>
    
    <body>
     
    
    	<div class="header">
    
    		<p>Welcome to Free Movies World</p>
    
    
    	</div>
    
    <br><br><br><br><br>
    <div id="wrap">
    
    	<div class="menu ">
    
    		<h2>Generes</h2>&nbsp;&nbsp;&nbsp;<div class="arrow-down"></div><div class="line"></div>
    
    <a href="#"><h3>All</h3></a><div class="line"></div>
    <a href="#"><h3>Action</h3></a><div class="line"></div>
    <a href="#"><h3>Adventure</h3></a><div class="line"></div>
    <a href="#"><h3>Animation</h3></a><div class="line"></div>
    <a href="#"><h3>Comedy</h3></a><div class="line"></div>
    <a href="#"><h3>Drama</h3></a><div class="line"></div>
    <a href="#"><h3>Fantasy</h3></a><div class="line"></div>
    <a href="#"><h3>Horror</h3></a><div class="line"></div>
    <a href="#"><h3>Sci-Fi</h3></a><div class="line"></div>
    <a href="#"><h3>Thriller</h3></a><div class="line"></div>
    <a href="#"><h3>War</h3></a>
    
    	</div>
    <div id="mcon">
    
    <h4> My movies Section </h4>
    </div>
    	
    
    
    </div>
    </body>
    </html>

  2. #2
    Join Date
    Oct 2013
    Posts
    516
    <div class="menu "> should probably be <div class="menu">. Note the trailing space between menu and the ending quote.

    That stated, it works as-is for me in IE11. Looks exactly as it does in Chrome and FF. Which begs the question, "Which IE version are you running through Wine and Ubuntu?"

    Beyond just working, your page has some, umm, issues. <title> tags outside the <head> tags, using <h>eading tags for how they render, not their semantic meaning, no <h1>, excessive use of <br> to space sections, &nbsp; to position elements, etc.

    With that in mind, I've taken the liberty of rewriting some of your code (HTML and CSS). There's more that could be done (not perfect by any stretch of the imagination), but this is a start for you to play with.

    HTML Code:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    
    <title>My Home Page</title>
    
    <link href="http://fonts.googleapis.com/css?family=Fjalla+One" rel="stylesheet" type='text/css'>
    <link rel="shortcut icon" href="http://pbs.twimg.com/media/BDRs9CpCEAEGIXU.png">
    <style>
    
    body {
    	background-color:#fff;
    	font-family: 'Fjalla One', sans-serif;
    	color:#F5FBEF;
    	min-height:1500px;
    }
    
    /*  Major page section styles */
    header {
    	width: 100%;
    	border-bottom: 2px solid #04B4AE;
    	height:45px;
    	background:silver;
    	position:absolute;
    	top:0px;
    	right:0px;
    	left:0px;
    	z-index:-1;
    }
    
    section {
    	margin-top:95px;
    	width:100%;
    }
    
    nav {
    	width: 15%;
    	padding: 10px;
    	margin: 0px;  
    	float:left;
    	background-color:#04B4AE;
    	border-bottom: 5px solid #0B615E;
    	border-top: 5px solid #0B615E;
    	font-size:1.25em;
    	font-weight:bold;
    }
    
    article {
    	min-height: 1000px;
    	margin: 0 0 0 250px;
    	padding: 20px;
    	background:#F2F2F2;
    	border: 2px solid #04B4AE;
    	color:#585858;
    }
    
    /* Heading styles */
    h1 {
    	font-size:1em;
    	font-weight:normal;
    	margin-left:3px;
    }
    
    nav>h2 {
    	display:inline-block;
    	font-size:1.25em;
    	font-weight:bold;
    }
    
    article>h2 {
    	text-align:center;
    	font-size:1.25em;
    	font-weight:bold;
    }
    
    h3,h4 {
    	text-align: center;
    }
    
    /* Link styles */
    nav>a:link, nav>a:visited {	/* Adding nav> separates the main navigation links from "regular" text links (see below) */
    	display: block;
    	font-weight: bold;
    	color: #ffffff;
    	background-color: #04B4AE;
    	text-align: center;
    	padding: 20px 5px 20px 5px;
    	text-decoration: none;
    }
    
    nav>a:hover, nav>a:active {
    	background-color: #fff;
    	color:#04B4AE;
    }
    
    a {			/* Play with these styles to make regular text links look as you want */
    	text-decoration:none;
    }
    
    a:hover, a:active {	/* Play with these styles to make regular text links look like you want */
    	color:#04B4AE;
    	text-decoration:underline;
    }
    
    /* Other classes */
    .line {
    	height:1px;
    	background:white;
    	border-bottom:1px solid white;
    }
    
    .arrow-down {
    	width: 0; 
    	height: 0; 
    	border-left: 10px solid transparent;
    	border-right: 10px solid transparent;
    	display:inline-block;
    	border-top: 10px solid #fff;
    	margin-left:10px;
    }
    
    </style>
    
    </head>
    
    <body>
     
    
    <header>
    
    	<h1>Welcome to Free Movies World</h1>
    
    </header>
    
    <section>
    
    	<nav>
    
    		<h2>Generes</h2><div class="arrow-down"></div><div class="line"></div>
    
    		<a href="#">All</a><div class="line"></div>
    		<a href="#">Action</a><div class="line"></div>
    		<a href="#">Adventure</a><div class="line"></div>
    		<a href="#">Animation</a><div class="line"></div>
    		<a href="#">Comedy</a><div class="line"></div>
    		<a href="#">Drama</a><div class="line"></div>
    		<a href="#">Fantasy</a><div class="line"></div>
    		<a href="#">Horror</a><div class="line"></div>
    		<a href="#">Sci-Fi</a><div class="line"></div>
    		<a href="#">Thriller</a><div class="line"></div>
    		<a href="#">War</a>
    
    	</nav>
    
    	<article>
    
    		<h2>My movies Section</h2>
    		<p><a href="#">sample link</a></p>
    
    	</article>
    	
    </section>
    </body>
    </html>

  3. #3
    Join Date
    May 2014
    Posts
    1,042
    Well.. for starters what makes navigation a bunch of mini sub-sections with NO CONTENT? That's what numbered headings MEAN, so you're using them wrong. Again, h1 is the heading under which all content on the page is subsections, h2 is the start of a subsection of the h1. H3 is the start of a subsection of the H2 before it, so on and so forth. Since those AREN'T subsections of the page, and are instead links to categories and/or other pages, they shouldn't be numbered headings in the first place. You're basically saying "My Movies section" is a subsection of "war"!

    ... and no, numbered headings do not mean "bigger text".

    Second, no matter what the HTML 5-tards might try to say, block level tags -- like H3, have no business inside a block level tag -- like A. Anchors are inline-level, don't put block level tags inside them! NOTE, I'm saying LEVEL, not CSS display state; two unrelated things that just happen to sometimes default the same.

    I would suggest you read this reference in it's entirety:
    http://htmlhelp.com/reference/html40/

    Paying particular attention to the "contents" and "contained in" sections of each tag. Let's use A as an example:
    http://htmlhelp.com/reference/html40/special/a.html

    Contents - Inline elements except A
    Contained in - Block-level elements, inline elements except A and BUTTON

    Learn those, or at least be aware of them and look them up on a reference like that one as needed.

    Really your markup doesn't make any sense. You have a obvious heading under which everything on the page is a subsection, so why is it a DIV+P instead of a H1? Those aren't subsections, why are they H2 and H3? That last one isn't a subsection of the navigation, why is it a H4? You seem to be using line-breaks to do padding or margin's job...

    You also seem to be setting a whole bunch of things in the CSS that shouldn't be needed and/or actually do anything, like the min-height on body, width:100% on a block level tag (they do that already), and so forth...

    First step, let's get your markup up to snuff:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html
    	xmlns="http://www.w3.org/1999/xhtml"
    	lang="en"
    	xml:lang="en"
    ><head>
    
    <meta
    	http-equiv="Content-Type"
    	content="text/html; charset=utf-8"
    />
    
    <meta
    	http-equiv="Content-Language"
    	content="en"
    />
    
    <meta
    	name="viewport"
    	content="width=device-width; height=device-height; initial-scale=1.0"
    />
    
    <link
    	type="text/css"
    	rel="stylesheet"
    	href="http://fonts.googleapis.com/css?family=Fjalla+One"
    	media="screen,projection,tv"
    />
    
    <link
    	type="text/css"
    	rel="stylesheet"
    	href="screen.css"
    	media="screen,projection,tv"
    />
    
    <title>
    	Free Movies World
    </title>
    
    </head><body>
    
    <h1>Welcome to Free Movies World</h1>
    
    <div id="columnWrapper">
    
    	<div id="extras">
    		<h2>Genres <span class="utfSymbol">&#x25BC;</span></h2>
    		<ul>
    			<li><a href="#">All</a></li>
    			<li><a href="#">Action</a></li>
    			<li><a href="#">Adventure</a></li>
    			<li><a href="#">Animation</a></li>
    			<li><a href="#">Comedy</a></li>
    			<li><a href="#">Drama</a></li>
    			<li><a href="#">Fantasy</a></li>
    			<li><a href="#">Horror</a></li>
    			<li><a href="#">Sci-Fi</a></li>
    			<li><a href="#">Thriller</a></li>
    			<li><a href="#">War</a></li>
    		</ul>
    	<!-- #extras --></div>
    
    	<div id="content">
    		<h2>My Movies Section</h2>
    		<p>Assume you'd have some content here.</p>
    	<!-- #content --></div>
    	
    <!-- #columnWrapper --></div>
    
    </body></html>
    Logical heading orders, headings on what SHOULD be headings, list for the list of choices. The span.utfSymbol is there as not all utf symbols are supported by all fonts, so we want to target that manually. I'd use a UTF-8 character instead of the border trick.

    I ALWAYS write my HTML separate from the CSS file, even in testing. 1) it's what your finished product should be anyways, 2) I find it easier to have two editor windows open side-by-side than it is to keep scrolling up and down between markup and style.

    Getting close to the post size limit... to be continued.
    Java is to JavaScript as Ham is to Hamburger.

  4. #4
    Join Date
    May 2014
    Posts
    1,042
    The CSS I'd use is pretty simple:
    Code:
    /* null margins and padding to give good cross-browser baseline */
    html,body,address,blockquote,div,
    form,fieldset,caption,
    h1,h2,h3,h4,h5,h6,
    hr,ul,li,ol,ul,dd,dt,
    table,tr,td,th,p,img {
    	margin:0;
    	padding:0;
    }
    
    img,fieldset {
    	border:none;
    }
    
    hr {
    	display:none;
    	/*
    		HR in my code are for semantic breaks in topic/section, NOT
    		style/presenation, so hide them from screen.css users
    	*/
    }
    
    @media (max-width:600px) {
    	* {
    		-webkit-text-size-adjust:none;
    		-moz-text-size-adjust:none;
    		-ms-text-size-adjust:none;
    	}
    }
    
    body {
    	font:normal 85%/150% "fjalla one",sans-serif;
    	color:#F5FBEF;
    	background:#FFF;
    }
    
    h1 {
    	font:bold 125%/150% "fjalla one",sans-serif;
    	padding:0.5em;
    	margin-bottom:4.5em; /* 3 lines */
    	color:#086;
    	background:#CCC;
    	border-bottom:2px solid #0BA;
    }
    
    h2 {
    	font:bold 150%/120% "fjalla one",sans-serif;
    	padding-bottom:0.33em;
    }
    
    #columnWrapper {
    	margin:0 1em;
    	overflow:hidden; /* wrap floats */
    	zoom:1; /* trip haslayout, wrap floats legacy IE */
    }
    
    #extras {
    	width:10em;
    	float:left;
    	display:inline; /* prevent legacy IE margin doubling */
    	margin-right:1em;
    	background:#0BA;
    	border:solid #065;
    	border-width:5px 0;
    }
    
    #extras h2 {
    	padding:0.66em 0.33em;
    }
    
    #extras ul {
    	list-style:none;
    	margin:0 0.5em;
    }
    
    #extras li {
    	display:inline; /* basically removing them from flow, preventing IE staircase bug */
    }
    
    #extras li a {
    	display:block;
    	padding:1em;
    	text-align:center;
    	text-decoration:none;
    	color:#FFF;
    	border-top:2px solid #FFF;
    	-webkit-transition:background 0.3s, color 0.3s;
    	-moz-transition:background 0.3s, color 0.3s;
    	transition:background 0.3s, color 0.3s;
    }
    
    #extras li a:active,
    #extras li a:focus,
    #extras li a:hover {
    	color:#0BA;
    	background:#FFF;
    }
    
    #content {
    	overflow:hidden; /* prevent float de-indent */
    	zoom:1; /* trip haslayout, prevent float de-indent legacy IE */
    	padding:1em;
    	color:#555;
    	background:#F2F2F2;
    	border:2px solid #0BA;
    }
    
    .utfSymbol {
    	font-family:arial,'andale mono',freesans,lastresort,sans-serif;
    }
    I always start out with a reset. There are smaller ones, but those can cause issues with form elements. There are larger ones, but they tend to bloat out the page changing values that don't need to be reset. This one is 'just right'.

    Oh, and beware that for some jacktarded reason Google webfonts are NOT supported in anything less than IE9 now, for no fathomable reason since webfonts implemented according to the specification works all the way back to IE 5.0, since they just copied how M$ did it. Generally I try to avoid webfonts for being bandwidth hogs, but if I were to use them, I'd host them myself instead of relying on Google for it. Their fonts while easy to add, just "expels air on the proverbial equine of short stature" in terms of implementation.

    I've tossed up a live copy on my server here:
    http://www.cutcodedown.com/for_other.../template.html

    So you can see it in action. As with all my examples the directory:
    http://www.cutcodedown.com/for_others/ncrixz/

    is wide open for easy access to the bits and pieces.

    I tried to comment it enough you should be able to grasp the how/what/why of it.

    Moving forward with this, I'd suggest implementing a max-width container DIV around the entire layout, or at least set a max-width on #columnWrapper so that really long lines of text in the content don't get hard to read. That's called "semi-fluid'" design and is one of the three things ALL layouts written in this day and age should be.

    The other two being elastic -- which this is since I declared widths and paddings in EM's... and Responsive, which you're not quite at the point of thinking about yet. I usually set my responsive layout breakpoints based on the content or a reasonable facsimile of future content, and that's something you're decidedly lacking right now.

    There's a reason I usually start with a flat plaintext of the page's content as if markup never even existed before I even START thinking about adding tags, and usually add all my semantic tags (headings, lists, paragraphs) before I even THINK about applying layout with CSS, and don't usually add my DIV until I start styling, and then only when needed.

    In any case, hope this helps.
    Java is to JavaScript as Ham is to Hamburger.

  5. #5
    Join Date
    Jun 2014
    Posts
    13
    WOW *.* You guys are just amazing. I am new to css thats why my coding sucks. But Thank you guys for supporting a newbie i will be very very grateful to you guys. And i will try to re-code it perfectly according to what you have taught me.

  6. #6
    Join Date
    Jun 2014
    Posts
    13
    :Kevin2

    Sir, all the points you taught i understood but i have one question in section why you gave width 100%?

  7. #7
    Join Date
    Oct 2013
    Posts
    516
    Because it was part of your original code and I blindly copy/pasted it. I took your original #wrap CSS and renamed it. As deathshadow points out, not needed on block-level elements.
    Last edited by Kevin2; 07-02-2014 at 11:17 AM.

  8. #8
    Join Date
    Jun 2014
    Posts
    13
    :deathshadow

    Sir, First of all i must thank you for helping me and the triangle thing it was amazing to know which i never knew before. Secondly, i have some questions related with the html and css ?

    1. for what do we use the viewport and media="screen,projection,tv" (in link)?
    Code:
    <meta
    	name="viewport"
    	content="width=device-width; height=device-height; initial-scale=1.0"
    />
    2.@media (max-width:600px) what is this media ?

    3. And with every font tag in css you used two percentage. e.g (font:bold 125%/150% "fjalla one",sans-serif; ) what it is used for and is it mandatory to use like this ?

    4.In #columnWrapper you used zoom and overflow hidden. Didn't understood that too ?

    5. Why did we used so many fonts in utf symbol ?
    Code:
    utfSymbol {
    	font-family:arial,'andale mono',freesans,lastresort,sans-serif;
    }
    Other i understood nicely and perfectly. taught with excellent references and short and exact codes.

    Regards,
    You Student
    ncrixz

  9. #9
    Join Date
    May 2014
    Posts
    1,042
    Good questions!

    Quote Originally Posted by ncrixz View Post
    1. for what do we use the viewport
    That viewport META tells mobile browser not to lie about their width and height, or to use a different default 'scaling' -- it is NO guarantee it will work as some devices will STILL lie about their display size (reporting half or even a third their actual physical resolution -- see Apple's "retina" displays or the various LG Nexus units -- like the new 3 with the 2560x1440 display that's 5" diagonal?!?)

    It makes it a little easier to design for mobile -- basically it's telling mobile browsers we know what we're doing, so try not to second guess us so much.

    Quote Originally Posted by ncrixz View Post
    media="screen,projection,tv" (in link)?
    the MEDIA attribute says what that LINK is to be applied to. The majority of normal user-agents (browsers) will use screen for displaying... on screen. Some kiosks and browsers in 'full screen' operation will use projection instead of screen, or if projection is not stated apply their own style over your own, so it's good to include that one. Some devices report as 'tv' in the same manner.. they either ignore screen, mix screen with tv, or if tv not stated override your style.

    It's just generally safest to declare those three together.

    It also means your screen layout won't (or at least shouldn't) be sent to PRINT... or AURAL... or TELETYPE...

    http://htmlhelp.com/reference/html40...html#mediadesc

    List all the types. It's also why the 'style' attribute really shouldn't be used in your markup; it's sent to "all" and it might not make sense on "all".

    Omitting a MEDIA target on a CSS <link> the same as saying "all" -- which basically means sending CSS to targets where it may not apply, be useful, or even desired.

    Quote Originally Posted by ncrixz View Post
    2.@media (max-width:600px) what is this media ?
    Any screen smaller than 600px we can 'kind-of' assume is a scaling mobile browser -- such browsers apply another text-resizing we may or may not want, hence the overrides to text-size-adjust inside it. I use the media query on this so as to avoid sending those to desktop browsers, as on OSuX Safari setting -webkit-text-size-adjust breaks the ability to zoom in the browser -- a laugh as Safari on iOS zooms just fine with it set... but that's crApple for you.

    Quote Originally Posted by ncrixz View Post
    And with every font tag in css you used two percentage. e.g (font:bold 125%/150% "fjalla one",sans-serif; ) what it is used for and is it mandatory to use like this ?
    The second number is the line-height. I have a rule -- you change the font-size, you change the line-height. By the time you say "font-size:125; line-height:150%;" it's damned near as long as the full condensed font property as shown, so I just go ahead and say the whole thing so I can clearly see when the font is changed everything at once.

    Line-heights don't inherit 'properly' -- they're unpredictable cross-browser, resulting in a lot of sites that TRY to use dynamic (%/em) fonts having overlapping lines as the line-height failed to grow with the font.

    A classic example of this would be:
    Code:
    <div id="linkHeights">
    	<div class="test1">
    		Test
    	</div>
    	<div class="test2">
    		Test
    	</div>
    </div>
    With this CSS:
    Code:
    #linkHeights {
    	font-size:20px;
    	line-height:200%;
    }
    
    #linkHeights div {
    	font-size:14px;
    	background:#CCC;
    }
    
    #linkHeights .test2 {
    	line-height:200%;
    	background:#EEE;
    }
    div.test1 will be taller than div.test2 -- when both should be line-height:200%;

    There is a LIE propagated by halfwits at places like SitePoint where if you omit a metric:

    line-height:2;

    It will inherit properly and remove all those issues, but it's a bunch of bull since it does NOT work in IE8, it does NOT work in IE10 (a laugh since it works in 9 and 11), it does NOT work in FF if you change the browser default font-size, it does NOT work in "REAL" Opera (as opposed to the pathetic crippleware that is ChrOpera)... But of course you show them screencaps of it broken and instructions on how to break it, they stick their heads in the sand crying "Wah wah wah, it's not so" like a bunch of five year olds.

    Sorry, pet peeve. This was the last straw that removed the last bit of respect I had for the ONE surviving staff member on a certian forums.

    Quote Originally Posted by ncrixz View Post
    4.In #columnWrapper you used zoom and overflow hidden. Didn't understood that too?
    overflow:hidden and overflow:auto trips a behavior where floats will be contained. You use this and you don't need any "clearfix" or clearing DIV or any of that nonsense.

    The problem is, IE prior to version 8 either doesn't do that (IE6/lower) or randomly ignores it for christmas knows what reason (IE7). There is a internal condition in IE called "haslayout". It was originally made to speed up rendering on elements that didn't need it's dimensions or positioning recalculated all the time -- elements where "haslayout" is false don't report their position or size properly to CSS and in some cases JS. There are certain values in CSS that can set 'haslayout' to true -- a fixed width or height, a percentage width or height... and zoom.

    A lot of people used to ***** about using zoom as a haslayout trigger as it is considered 'invalid CSS" and was a proprietary IE value... but in this age of non-CSS3 masquerading as such with vendor prefixes that arguement holds water like a steel sieve.

    MOST layout issues in IE8 and earlier compared to other browsers can be fixed by simply using a haslayout trigger, so if you care about anyone on anything older than IE9, it's good to know when to use it. The laugh is most of the people who poo-poo haslayout either have disastrously broken layouts on anythign less than IE10, or worse waste several K on hacks and endless IE conditional nonsense in the markup all to avoid simply saying "zoom:1;" once or twice in their CSS. :/

    Haslayout fixes width, height and absolute positioning of a containers child elements, and also trips a float wrapping behavior just like overflow:hidden does on modern browsers.

    Zoom itself can also fix some layout bugs in IE (IE7 is notorious for this) that other haslayout triggers do not work with -- the 'staircase bug' on floated LI for example; you can either remove the LI from flow by setting them to display:inline and not floating them, but that's not compatible with dropdown menus in anything prior to IE8, or you can just put zoom on it.

    Quote Originally Posted by ncrixz View Post
    5. Why did we used so many fonts in utf symbol ?
    Not all fonts have complete, or even partial support for the enhanced unicode characters. In the case of this one finding a font for non-Windows users is something of a craps shoot -- case in point helvetica would display that pesky unrecognized character symbol, and that's the most commonly declared sans-serif font people use for targeting OSX.

    So we need a drop-through list that covers as many 'reasonable' bases as possible.

    Arial - windows, MAYBE other OS if the M$ font pack is installed
    Andale Mono -- Some mac's, some linux, even some windows.
    Freesans -- Some linsux distros
    Lastresort -- Modern OSX (10.4 / newer) Tear my life into pieces...

    Remember, even if you're using webfonts, you should have a font-stack to drop through on. That's why even if designing to plain sans-serif, you use something like: arial,hevletica,sans-serif;

    ...and of course EVERY font stack should have the parent family last, hence sans-serif. We can only hope if it drops through to here the character is supported.

    There's a reference I use a lot to try and reduce the graphics on pages by leveraging characters on FileFormat.info... If you dig into the geometric shapes code-block:

    http://www.fileformat.info/info/unic...s/utf8test.htm

    If you click on one of the characters, on it's page you'll find a link to "fonts that support xxx" -- which goes to a page like this one:

    http://www.fileformat.info/info/unic...ontsupport.htm

    You then have to figure out which ones have that character available. Interestingly "real" Opera (Presto based) and FF will try to fall back and implement it with an internal fallback if possible when a extended unicode character is not found in the declared font -- sadly we have to state the massive stack mostly for khtml/webkit/blink based browsers (same thing really) and IE -- which aren't smart enough to do that.

    Hope that clears things up -- any more questions fire away.
    Java is to JavaScript as Ham is to Hamburger.

  10. #10
    Join Date
    Jun 2014
    Posts
    13
    :deathshadow

    i have add more things to my web check it and i am sure this time i will get less errors. please check it on my server

    home page :http://192.187.118.227/

    then click on transformers watch now and check sample page on which people will watch movies. Beside that shall i use title tag with every movie so people can easily search for the movie Am i right ?

  11. #11
    Join Date
    May 2014
    Posts
    1,042
    You should indeed have a unique TITLE tag inside HEAD for each page. Not just for search, but for usability.

    The TITLE tag exists to be shown on the window, tab, and the link on the SERP (search engine results page) -- if you have multiple tabs of the same website open, them all having the same TITLE makes it hard to know which is which.

    It's why I usually have some php like this:

    Code:
    <title>
      ', (isset($pageTitle) ? $pageTitle . ' - ' : ''), $siteTitle, '
    </title>
    Using hypens the same way the browser does... So for example in your case that would output something like:

    Transformers 2014 - Free Movie World

    Though your current one is ok, it would be nicer if the title of the movie was closer to the start since with many tabs open in crappy browsers that put tabs at the top, you can end up with just "watch" showing.

    Inside your page there's an issue with your content -- you've got multiple H1 and a SPAN doing P's job. Unless you are using HTML 5 and the pointlessly redundant "SECTION" or "ARTICLE" tags, you really should only have ONE H1 on the page, as everything on the page is a subsection of that. As such the movie title you have further in the page should be a h2 as it's a sibling of the menu, not it's parent. Also I don't think you need that span around the image. There isn't a whole lot you can do to a span that you can't do to a IMG directly.

    Code:
    	<div id="movdata">
    		<h2>Transformers 2014 watch online Free</h2>
    		<img
    			src="images/movimages/transformers.jpg"
    			alt="Klematis"
    			width="214" height="317"
    			class="leadingPlate"
    		/>
    		<p>
    			Transformers: Age of Extinction is a 2014 science fiction action film based on the Transformers franchise. It is the fourth installment of the live-action Transformers film series and stars Mark Wahlberg in the lead role. A sequel to Transformers: Dark of the Moon, the film takes place four years after the invasion of Chicago. Like its predecessors, the film is directed by Michael Bay and executive produced by Steven Spielberg. The screenplay is written by Ehren Kruger, who has served as screenwriter since Transformers: Revenge of the Fallen. The film features an entirely new cast of human characters and is the first in the series to feature the Dinobots. Returning Transformers include Optimus Prime, Bumblebee, Ratchet, Leadfoot, and Brains. The film was released on June 27, 2014, in IMAX and 3D.
    		</p>
    	<!-- #movdata --></div>
    I'd also suggest using a non iframe youtube embed, since iFrames don't exist in STRICT.

    Code:
    <!--[if IE ]> 
         <object 
              type="application/x-shockwave-flash" 
              classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
              codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
              width="450" height="225" 
         > 
    <![endif]--> 
    <!--[if !IE]>--> 
         <object 
              type="application/x-shockwave-flash" 
              codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
              width="450" height="225" 
              data="https//www.youtube.com/v/r8HPIH5JCak?version=3" 
         > 
    <!--<![endif]--> 
         <param name="movie" value="https//www.youtube.com/v/r8HPIH5JCak?version=3" /> 
         <param name="quality" value="high" /> 
         <p> 
              <a href="http://get.adobe.com/flashplayer/"> 
                   Adobe Flash Player 
              </a> is required to view this content. 
         </p> 
    </object>
    It's a little hefty, but it's valid code and more likely to work across different browsers and OS than the IFRAME or EMBED versions.

    Hope this helps.
    Last edited by deathshadow; 07-08-2014 at 05:11 AM.
    Java is to JavaScript as Ham is to Hamburger.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles