954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Css placement and size

Hey there
I'm quite new with php, i create a small site that can control some function for a program i made in C#, however I'm having some trouble with the css :P i got a header, h1 and h2. the header and h1 is functioning as they should, however h2 is not place as i wanted it to. I was wondering what do i have to do to move it to the opposite of h1. Also when i give h2 a height/width it gets places on the same side as h1, without the dimensions i cannot set the gradient background to h2, any ideas? :)

this is what my css file looks like:

<?php 
header ("Content-type: text/css");
?>
body{
 background-image: url('Sky.jpg');
}
header {
 text-align: center;
}
h1 {
 font-size: 1em;
 background-image: url('ElementBackground.jpg');
 //background-color:#86B404;
 text-align: left;
 height:290px;
 width:350px;
}
h2 {
 font-size: 1em;
 text-align: right;
 //background-image: url('h2.jpg');
 //height:290px;
 //width:350px;
}
?>


oh, and i just realized that i should have posted this under Web Design > HTML and CSS sorry about that, hopefully a mod can move this :)

Jazerix
Junior Poster in Training
84 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Can you maybe post the html file?

Phillamon
Junior Poster in Training
65 posts since Oct 2010
Reputation Points: 36
Solved Threads: 5
 

using float:left and float:right to h1 and h2

lps
Junior Poster
117 posts since Jul 2011
Reputation Points: 13
Solved Threads: 22
 

Thanks that worked! :D:D:D

Jazerix
Junior Poster in Training
84 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You