Hi all, new to the forums and css, so take it easy on me http://csscreator.com/sites/all/modules/smileys/packs/example/lol.png
Basically, im hoping this will be pretty straight forward, I have a page that im working on www.waxpigeon.com, and all im trying to do is make the black bar in the middle of the page, be as near to the middle as possible when resizing windows and viewing site in different resolutions
And all i want to know really is, is this possible with css?
Thanks in advance for any advice/pointers
Solution
Untitled Document
html>body #negro
{
positiion:absolute;
margin: 10% 0 0 0;
width:110%;
height:300px;
background-color:black;
}
html>body .silly_man
{
position:absolute;
margin: 50px 0 0 30%;
font-family:Arial, Helvetica, sans-serif;
font-size:100px;
color:white;
}
No need to be so crude
No need to be so crude
Well it works to a certain extent, thanks for that, ill try and refine it to get it to work how i would like, ill let you know
Good Luck
Start breaking your style sheets off to separate css documents.
Here is the code I use to pick them up. It will pull style.css into the right browser. You have to generate style-ie.css for IE<8. It is not that difficult but a whole new ball of wax.
var browser_type = navigator.appName;
var pattern = /MSIE 8.0/;
if (!pattern.test(navigator.appVersion) && browser_type == "Microsoft Internet Explorer") {
document.write("");
}
else {
document.write("")
}
t-bone wrote:Start breaking
Start breaking your style sheets off to separate css documents.
Here is the code I use to pick them up. It will pull style.css into the right browser. You have to generate style-ie.css for IE<8. It is not that difficult but a whole new ball of wax.
var browser_type = navigator.appName;
var pattern = /MSIE 8.0/;
if (!pattern.test(navigator.appVersion) && browser_type == "Microsoft Internet Explorer") {
document.write("");
}
else {
document.write("")
}
Wait, what? Are you calling a different style sheet to be used in IE with JS?
Yes
Yes. I am using javascript to dictate between two different stylesheets based on what browser the user has.
Those calls are made by a team of programmers who analyze things such as the percentage of users with java and such.
I don't write the code or make that call. I don't code with C sharp or generate all the real coding language to actually develop software programs.
We do well. So I trust my team. I am also familiar with the argument and it was discussed in a meeting prior to implementing the code.
Thanks!
You should research
You should research conditional statements. It's a non-JS way of calling style sheets.
<!--[if lt IE 6]> <link rel="stylesheet" type="text/css" media="all" href="ie5.css" /> <![endif]-->
IE 8
That methodology no longer is relevant when dealing with IE8.
I looked over your site and actually bypassed your update page and the stuff falls apart in older versions of IE. It is really not that complicated. You don't have to try and get the person to do a software update. Chances are they won't.
Just serve the content. Use that code. Generate a stylesheet called style-ie.css and something like supersleight to make your png's transparent and you can probably have your site looking the same in IE 6, 7 and 8 in a half an hour.
t-bone_two wrote:That
That methodology no longer is relevant when dealing with IE8.
I looked over your site and actually bypassed your update page and the stuff falls apart in older versions of IE.
I'm proactive and dont code for older ie browsers, thats why the update is there. If everybody would stop coding for non-supportive browsers, people would get their stuff up-to-date. Some disagree, some dont.
I agree with you
If I could abolish every IE browser prior to 8 I would.
The facts are that people take paths of least resistance. People who study CTR and such tell me profit margins are based on giving a user a path with no resistance.
I would love to code for just the most recent browser and hope the user would do the extra work to see things optimally. But my advisors tell me it's not a fiscally responsible solution.
And the company results warrant following their lead.
And I just gotta say. I am a pretty big fan of money.
Stop with this advice about
Stop with this advice about browser sniffing it has and remains bad advice that is never recommended.
Conditional comments are the method used to provide - where necessary - specific and isolated rules to various IE versions.
Well thanks for the help
Well thanks for the help anyway t-bone, and i normally do use external stylesheets, but i designed this site all in html, gonna be making it all refer to css where needed but its a very basic site and it not gonna have alot more info when done
My only point
Is that some of that breaks down when dealing with IE8 in the methond I am used to dealing with.
IE8 will grab style-ie. Not style.css