473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Minor CSS Problem. Need a quick fix

I am trying to modify some CSS to shift some text over slightly and raise it up. Here is the HTML code and CSS I am working with:

-------------
THE HTML CODE
-------------


<div id="header">
<div id="headerimg">
<h1><a href="http://www.blogtheinternet.com/testblog/">Professional Product Reviews</a></h1>
<div class="description">A professional product review blog on the Internet</div>
</div>
</div>

----------------------------
INFORMATION IN THE STYLE.CSS
----------------------------

#header {
background: #73a0c5 url('http://www.blogtheinternet.com/testblog/wp-content/themes/default/images/kubrickheader.jpg') no-repeat top center;
}

#headerimg {
margin: 7px 9px 0;
height: 192px;
width: 740px;
}

h1, h2, h3 {
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-weight: bold;
}

h1 {
font-size: 4em;
text-align: center;
}

#headerimg .description {
font-size: 1.2em;
text-align: center;
}

What I want to do is raise the <h1> test up to be pretty much level with the gold seal and maybe about 10 pixels away from it.

From there I want to add a 468x60 Google Adsense code below the gold seal. I have been working on this for a few hours now, can anyone throw me a bone real quick and possibly modify the CSS included above?

* NOTE: Here is a Mock Up image I did in photo shop to illustrate what I am wanting to do. Granted the headerimage as you see it now will be a different background... more less a solid or standard gradient color.

http://www.blogtheinternet.com/testb...er-example.jpg

Best Regards,
Garry
Jun 22 '07 #1
2 1413
Just a bump.

I want to see if I can get someone to offer a few minutes of help.

Thanks in advanced.

Garry
Jun 23 '07 #2
jhardman
3,406 Expert 2GB
Just a bump.

I want to see if I can get someone to offer a few minutes of help.

Thanks in advanced.

Garry
You nasty little bumper!

There are several ways to do things like this, using just padding and margins you could try:
[html]<style type="text/css">
#header {
width:760px;
background: #73a0c5 url('http://www.blogtheinternet.com/testblog/wp-content/themes/default/images/kubrickheader.jpg') no-repeat top center;
}

#headerimg {
margin: 7px 9px 0;
padding: 20px;
height: 70px;
width: 740px;
}

h1, h2, h3 {
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-weight: bold;
}

h1 {
font-size: 2.5em;
text-align: center;
margin: 0px;
}

#headerimg .description {
margin: 0px;
font-size: 1.2em;
text-align: center;
color: white;
}

a {
color: white;
text-decoration: none;
}[/html]
you also might want to look up relative and absolute positioning, especially since old versions of ie notoriously mis-interpret padding and margins

Jared
Jun 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Christian Seberino | last post by:
I am looking at the ELSE home page and trying to figure out if I should invest the time to learn about the ELSE minor mode for Emacs. Is there any programmer out there using ELSE that is getting...
1
by: aredo3604gif | last post by:
On Sun, 10 Apr 2005 19:46:32 GMT, aredo3604gif@yahoo.com wrote: >The user can dynamically enter and change the rule connection between >objects. The rule is a "<" and so given two objects: >a <...
0
by: jaYPee | last post by:
i have downloaded an example of a combobox in datagrid from this site http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q it works great except that there are some minor problem. this is what...
6
by: Frank V. | last post by:
Hello, I'm new to VB.net, moving from VB6 to VB.net. My question is "In VB.net what is the equivalent of the App.major (and others) VB6 property. I, like a lot of people I imaging, display the...
4
by: Michael C# | last post by:
Given a DateTime variable, what's the best way to check "minor" status (i.e., less than age 18 years) based on today's date? I came up with this: Dim minor As Boolean = true 'dtDOB is a...
0
by: ksjayhawk | last post by:
This isn't very important to me, but my brain is arguing that there is an elegant way of performing the below "cho+protein+fat" calculation -- without repeating the calculations many times (below...
5
by: jupiter | last post by:
hi friends, I am anil. I have begining level experience of c++ so I need ur advice. I have a problem for all think tanks in the group. what i want is 1. Access a web page (html) say ebay's...
15
by: lucky | last post by:
Hi Guys You are probably my last chance to avoid getting crazy To help you understand my problem I have put images online showing the issue I have: http://www.australix.net/images/pb I...
2
by: piyushd.ganj | last post by:
i want any topics (not too much complex)on the c language for minor project in college....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.