positioning help |
positioning help |
Mar 13 2010, 07:24 PM
Post
#1
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 123 Joined: Nov 2008 Member No: 698,881 |
My headers are always off by 1 px either in safari or FF. I can get it right in IE and FF but it'll be off by a pixel in Safari or vice versa.
Here is my code for the top header: CODE <div id="BannerUnderTopNav" style="position:absolute; z-index:2; margin-left:-346px; _margin-left:-333px; top: 0px; background-color:COLOR; background-image:URL(http://i382.photobucket.com/albums/oo268/dygynomi/2010%20THOSE%20VICTORIOUS/header1.jpg); background-repeat: no-repeat; background-position: bottom center; width:823px; height:2017px; overflow:no;}"> </div> I have the _margin-left: xxx for IE and the other margin attribute for FF and Safari. But as you can see here: http://www.myspace.com/frucatestpage it'll be a px off in FF but right in safari. Let me know if there's something I can add in the code to fix that. Thanks guys! |
|
|
|
![]() |
Mar 20 2010, 01:55 AM
Post
#2
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 |
You shouldn't need anything transparent. Setting a link to block display and giving it a fixed width and height will do just fine. 1x1 pixel or not, it's still an additional request to a server. In anything on the web, always use text or code over images if you have the option.
Basically your entire layout consists of three parts: the background image (part of the style sheet, but we'll just consider it an extra part, since you had to make it), the style sheet, and the HTML. Keep ALL of your CSS together; don't use multiple <style> tags, and don't use inline styling (<div style=" ">). Browsers themselves also contribute to load time. If it has to keep switching between outputting HTML and styling it, it takes longer to parse. If you do everything correctly, you shouldn't need hacks to get cross-browser compatibility. If we're being honest, I'd say start over and try it like this:
Think of those old-school 8-bit video games. All the graphics you see in Mario are actually a single image. |
|
|
|
shynomi positioning help Mar 13 2010, 07:24 PM
Mike Where's the left: 50%; property? Also, remove ... Mar 13 2010, 07:27 PM
shynomi took out the unnecessary bracket.
tried putting i... Mar 13 2010, 08:19 PM
Mike Replace this chunk:
CODE<style>
.profileW... Mar 17 2010, 05:25 PM
shynomi Thanks for the help so far, I've switched out ... Mar 17 2010, 11:15 PM
shynomi Well I did some searching on the internet and foun... Mar 18 2010, 09:40 AM
shynomi Yea, I made the background 1599px and it now looks... Mar 18 2010, 11:13 PM
fixtatik Just my two cents...but why do this:
http://i382.... Mar 19 2010, 12:51 AM
shynomi That does sounds way better!
Ok, I tried anot... Mar 19 2010, 11:50 AM
shynomi Yea i figured that, where would I put the main gra... Mar 19 2010, 02:41 PM
shynomi Man, this sounds like a simple idea by making it o... Mar 19 2010, 05:09 PM
shynomi Yea that worked, for some reason I had taken that ... Mar 19 2010, 08:04 PM
shynomi Awesome, Let me look this over a bit. Mar 20 2010, 10:25 AM
fixtatik Also, I should mention you can position children w... Mar 20 2010, 10:49 AM
shynomi Yea photobucket pro is a lot better than they used... Mar 22 2010, 09:17 AM
shynomi agreed.
you can close this :) Mar 24 2010, 09:55 AM
Mike Topic closed & moved. Mar 24 2010, 10:37 AM![]() ![]() |