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.

CSS Forum


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



Reply
wats wrong with my code?
Old 08-12-2008, 03:40 PM wats wrong with my code?
Banned

Posts: 52
Name: Dang N
Location: Rowlett Tx
Trades: 0
can anyone tell me whats wrong with my code? the journal doesnt move where i want it to, or did i just did something wrong??

http://www.dangmn.net/homepage/index.php


CSS
Quote:
body{
background-image: url('http://www.dangmn.net/homepage/images/topl.jpg');
background-repeat: no-repeat;');
height: 350px;
width: 350px;
background-position: 0% 0%;
}

.journal{
border: 1px solid black;
background-color: #f3f3f3;
height: 500px;
width: 520px;
position: absoulte;
left: 35px;
padding: 2px;
top: 25px;
}
HTML
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="">
<meta name="description" content="">
<title>Dang's World</title>
<link rel="stylesheet" type="text/css" href="reset-fonts-grids.css">
<link rel="stylesheet" type="text/css" href="index.css">
</head>


<body>

<div class="journal">
<?php require( '/home/dangmnne/public_html/dn/news/news.php' ); ?>
</div>

</body>
</html>
Dangmnx is offline
Reply With Quote
View Public Profile Visit Dangmnx's homepage!
 
 
Register now for full access!
Old 08-12-2008, 04:36 PM Re: wats wrong with my code?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Get rid of the position:absolute - you're nailing it in place with that and it's not going to 'flow' at all.
__________________
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 08-12-2008, 04:37 PM Re: wats wrong with my code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
May I ask WHY you are setting height and width on the <body>, and WHERE you want the journal to move to?

Also, what do you want the overflow to do? You have a height explicitly set on the journal, but text will overflow if it gets too long. Do you want scrollbars? Your question is not clear.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-12-2008, 05:05 PM Re: wats wrong with my code?
Banned

Posts: 52
Name: Dang N
Location: Rowlett Tx
Trades: 0
alright i removed the position: absolute; but the 'journal' didn't move where i wanted it to.

i just want the image to stay where its at, and the journal to move a little to the right of it.
Dangmnx is offline
Reply With Quote
View Public Profile Visit Dangmnx's homepage!
 
Old 08-12-2008, 05:38 PM Re: wats wrong with my code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
instead of left: 35px, try margin-left: 35px;
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-12-2008, 05:55 PM Re: wats wrong with my code?
Banned

Posts: 52
Name: Dang N
Location: Rowlett Tx
Trades: 0
ah thankq ur a life saver!
Dangmnx is offline
Reply With Quote
View Public Profile Visit Dangmnx's homepage!
 
Old 08-12-2008, 06:29 PM Re: wats wrong with my code?
Banned

Posts: 52
Name: Dang N
Location: Rowlett Tx
Trades: 0
okay, now it doesn't work in IE,


oh can you tell me why my logo isn't showing up?

css
Quote:
.logo{
background-image: url('http://www.dangmn.net/homepage/images/logo.jpg');
background-repeat: no-repeat;
background-attachment:fixed;
background-position: 30% 20%;
}
html
Quote:
<div class="logo">
</div>
Dangmnx is offline
Reply With Quote
View Public Profile Visit Dangmnx's homepage!
 
Old 08-12-2008, 06:58 PM Re: wats wrong with my code?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
your <div> with a class of "logo" on it, doesn't have any dimensions (height), so without content inside of it to make it expand, it won't show an image that is in the background.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-12-2008, 07:22 PM Re: wats wrong with my code?
Banned

Posts: 52
Name: Dang N
Location: Rowlett Tx
Trades: 0
css
Quote:
.logo{
background-image: url('http://www.dangmn.net/homepage/images/logo.jpg');
background-repeat: no-repeat;
height: 177px;
width: 196px;

background-attachment:fixed;
background-position: 30% 20%;
}
i added the width and the height: but its still not showing up hmmm!
Dangmnx is offline
Reply With Quote
View Public Profile Visit Dangmnx's homepage!
 
Reply     « Reply to wats wrong with my code?
 

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 0.29454 seconds with 12 queries