Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Compatibility problem!
Old 11-18-2010, 04:27 PM Compatibility problem!
Super Talker

Posts: 142
Name: William
Trades: 0
Hi, I am coding this website: http://pinkpartiestest.webs.com

what I am trying to do is: Center the "text" (images) in between the shadow areas
to do it just now I have used margins, it works fine on my computer how ever, on some browsers / computers it doesn't work, the images stay still but the margins move (if you get what I mean!)

Ideally, I would like it to be "the same" on every computer, I hate using images in websites like this as I know I cannot do it, but its my aunts n she wants it so tried it out!

the other problem that occured was:
I could not get the "shadows" to be parallel to each other, the right one would drop
even although I used a float on it!
here is my code!

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pink Parties</title>

<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
	<div class="wrapper">
    	<div class="left">
    	</div>
    		<div class="content">
            
    			<div class="header">
                </div>
                <div id="name">
                </div>
                <div id="enter">
                <a href="home.php" border="0">
                <img src="images/enter.png" border="0" />
                </a>
                </div>
                <div id="service">
                </div>
            </div>
    	<div class="right">
        </div>    
    </div>
</body>
</html>
Code:
body {
	margin:0;
	padding:0;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	background:url(images/background.jpg) #ed0d95 repeat-x top center;
}
.wrapper {
	margin:0 auto;
	width:90%;
	min-height:768px;
}
.left {
	width:114px;
	height:768px;
	float:left;
	background:url(images/leftcontent.png) repeat-y;
    display:inline;
}
.right {
	width:114px;
	height:768px;
    margin-top:-460px;
    float:right;
	background:url(images/rightcontent.png) repeat-y;
}
.content {
	margin:0 auto;
}
.header {
	background:url(images/logo.png) no-repeat;
        margin:0 0 0 28em;
	width:775px;
	height:242px;
}
#name {
	background: url(images/service.png) no-repeat;
	width:467px;
	height:35px;
	margin-top:-90px;
	margin-left:30em;
}
#enter {
	width: 271px;
	height: 124px;
	margin-top:50px;
	margin-left:40em;
}
#service {
	background:url(images/bus.png) no-repeat;
	width:719px;
	height:302px;
	margin:-100px auto;
}
UUilliam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-18-2010, 07:48 PM Re: Compatibility problem!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Wow, now that's PINK!!!

I would suggest another approach to the shadow problem. I would not use 2 divs just for the shadows, I would make a single horizontal, repeating 'slice' of that bg that INCLUDES the shadows on the sides and repeat it vertically. To get the graphics on the top section, I would make that a bg on a separate div that would go above the repeated background so you can keep that same effect.

It's a whole lot easier to do it that way than the way you have it now and you don't have to worry about the alignment issue.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-18-2010, 08:18 PM Re: Compatibility problem!
Super Talker

Posts: 142
Name: William
Trades: 0
I see what you are saying, but I made it like that so that no matter what screen size, it would scale so that the margins would be the same size and no white spaces n stuff
I might just (since she probably wont re-touch the text once done...)
just edit it for each page...

I'd rather not though
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 11-19-2010, 12:29 AM Re: Compatibility problem!
Backslider's Avatar
Experienced Talker

Posts: 40
Trades: 0
You kinda got the right idea with the #service div... why not do the same with the others?
Backslider is offline
Reply With Quote
View Public Profile
 
Old 11-19-2010, 06:15 AM Re: Compatibility problem!
Super Talker

Posts: 142
Name: William
Trades: 0
I am guessing the thing that makes service work is the "margin:* auto;"
but the thing is, i need to push the other ones up as well as to the left so can't do that
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 11-19-2010, 09:29 AM Re: Compatibility problem!
Super Talker

Posts: 142
Name: William
Trades: 0
I decided (since she wants to host on freewebs aka webs.com) to try editing one of their templates, this would have 2 advantages

1 - Already compatible with most browsers
2 - Easy for her to add / remove content

it worked successfully!
(i think!)

http://pinkpartiesuk.webs.com/

I think it might actually look better!
the only thing is, the content area is a static size, unlike the dynamic resize that I was after, but I would rather it work than to appear correctly on some monitors with all those problems.
so a small sacrifice!
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 11-20-2010, 01:44 PM Re: Compatibility problem!
Super Talker

Posts: 142
Name: William
Trades: 0
Well, Although we agreed on £100 for me to, Design, Code, edit etc..
she paid me £20...
so...
I think this new update is fair for £20, considering the love heart image border alone could probably cost £20
so the fact I gave her the shadow, the alignment, the links etc...
I think she should be happy with that for £20!
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 11-20-2010, 06:41 PM Re: Compatibility problem!
Backslider's Avatar
Experienced Talker

Posts: 40
Trades: 0
Quote:
Originally Posted by UUilliam View Post
I think she should be happy with that for £20!

Hang a sign around your neck "Will code HTML for food"
Backslider is offline
Reply With Quote
View Public Profile
 
Old 11-21-2010, 01:05 AM Re: Compatibility problem!
Super Talker

Posts: 142
Name: William
Trades: 0
Food? lol...
With £20?
Sure maybe 2 -3 days but ****!
What a joke! £20.

But after i took everything off the website, she called me and said "i was only joking, i will pay the rest tomorrow."
UUilliam is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Compatibility problem!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.15776 seconds with 12 queries