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:

header ("Content-type: text/css");
 background-image: url('Sky.jpg');
header {
 text-align: center;
h1 {
 font-size: 1em;
 background-image: url('ElementBackground.jpg');
 text-align: left;
h2 {
 font-size: 1em;
 text-align: right;
 //background-image: url('h2.jpg');

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 :)

Recommended Answers

All 3 Replies

Can you maybe post the html file?

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

commented: Worked! +3

Thanks that worked! :D:D:D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.