UNIVERSITY
Members
-
Joined
-
Last visited
Reputation Activity
-
Make a directory called "menu" and place the menu.html in there but rename it to index.html
-
You can use mod_rewrite which tells a server to add the filename when the url is shortened. See
http://www.modrewrite.com/
http://www.workingwith.me.uk/articles/scripting/mod_rewrite
-
This in the main stylesheet is OK:-
#special-txt { display: none; }
You could combine both ids in the same conditional comment since both are for lt ie 7:-
<link rel="stylesheet" type="text/css" href="style.css"> <style type="text/css"> div { border: 1px solid #000000; } </style> <!--[if lt ie 7]> <style type="text/css"> img#special-img { display: none; } #special-txt { display: inline; } </style> <![endif]--> </head>
The above means that the image will not show in IE5 and IE6 (but should show in all other browsers) and the text should disappear in all browsers except IE5 and IE6 where it should show.
-
why bother with the copyright anyway? What exactly are you copyrighting?
Anyway you can always use http://www.metatags.info/meta_name_copyright
-
Don't ever put anything before the doctype. Put comments like that in the head section or the body section.
You may not need to do anything. IE6 won't process position: fixed; and usually just applies position: absolute. If you want to make sure, add in a conditional comment for IE6 right at the end of the head section, after any head section styles and links to stylesheets, but you will have to delete the position: fixed; from the inline style and add a id in the main stylesheet:-
Main stylesheet CSS:-
img#special { position:fixed; right:20px; top:200px; }
Code last in head section:-
<!--[if IE 6}> <style type="text/css"> img#special { position: absolute; } </style> <![endif]-->
HTML markup with id but without inline style:-
<img id="special" src="image.jpg" alt="image description" />
You have to delete the inline style because it would be processed last and you don't want that, you want the main style processed first for all browsers and then the conditional comment just for IE6. The position: absolute should put the image in the same place, but it will scroll in IE6 instead of staying fixed in the window.
-
If you don't know what a stylesheet is, I assume that you haven't got one. In which case use a head section style tag which should be before the conditional comment:-
<style type="text/css"> #special { display: none; } </style> <!--[if lt ie 7]> <style type="text/css"> #special { display: inline; } </style> <![endif]-->
You seem to have changed from an image to text in a p tag. Whether yo use the id for an image or a p tag, the above goes in the page head section. Note that the id is the same for both but one has display: none; while the other has display: inline; or display: block;
If you use it for text:-
<p id="#special">Hello</p>
or for an image:-
<img id="special" src="image.jpg" alt="image description" />
but don't use the same id twice on a page, if you have both image and text affected, use two id names.
-
You can add styles that only affect certain IE browsers. A conditional comment is not a hack, it's designed to do that.
Put this AFTER the main stylesheet link in the head section and make sure that there are no inline styles (those inside the html markup) affecting the style of the image you want to edit:-
<!--[if lt ie 7]> <style type="text/css"> img#my-image { display: none; } </style> <![endif]-->
lt ie 7 means all IE browsers less than IE7.
#my-image means that you need to add an id into the markup for that image (or edit the one that you have already if there is one):-
<img id="my-image" src="image.jpg" alt="image description" />
To make the image appear only in IE5 and IE6 you would do the reverse. The main stylesheet would have the id and display: none; and the conditional comment would have the id and display: block; or display: inline;
-
UNIVERSITY reacted to Christy in Deleting old site & making new one so have questions regarding SE crawlers subjectI had same issue in last few days. It will be deleted from Google searches with time. There is no key to deleted from there instantly.
-
@pat24, i still use <hr />, it's also remaining in the new html5 spec, so fairly future proof for now.
According to the new html5 spec though, <hr /> defines a change in content (as opposed to being a merely aesthetic line).
-
you can use
#div { border: 1px solid #000000: } for the border
between divs you could use <hr> and then style the hr in the css or use an image (not sure if <hr> is still correct)
-
UNIVERSITY reacted to back2front in What DOCTYPE to use if using HTML/CSS codes and want to make tables?They mean that you shouldn't use tables to position information on your website (unless it is information that is supposed to be in a table) and definitely not for the structure of your website. From your description, I'm guessing your news section doesn't need to be in a table. You can surround the information with <div></div> tags and use CSS to define how it looks on the page. Do you have some CSS knowledge?
-
Table layouts implementing will be prohibited since Sept 24 2010
-
As said above, you shouldn't lay a website out in tables.
Tables are for tabular data only.
-
UNIVERSITY reacted to Ash Scott in What DOCTYPE to use if using HTML/CSS codes and want to make tables?USE DIVS AND CSS GOD DAMNIT!
-
UNIVERSITY reacted to brown2005 in What DOCTYPE to use if using HTML/CSS codes and want to make tables?are you laying out the website with tables? you shouldnt.
-
Well it should be fine in IE 7 onward, I've just checked that. Which version of IE are you using?
You could post a screenshot.
-
Loading JS at the end is a pretty new revelation (i think?), in the last few years, as JavaScript has become more predominant.
Occasionally it may be needed in the head, but most JavaScript fires once the DOM has loaded, and the DOM doesn't fully load until near the end, thus placing the JavaScript in the head is offering no benefit.