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
Old 06-06-2007, 08:58 PM css help for newbie
Novice Talker

Posts: 9
Trades: 0
Hi all!

I have a website http://www.evsoft.pk/js3 and I am having a bit of a problem. Where the picture of the map is now, I want to add a textbox by css with a rectangular shape. I also want to ad a h1 title in the textbox but I want to change the size of it to make the title smaller..

I suck at html and css and just wondered if anyone would be able to help me out?

Thanks a ton in advance!

Last edited by LadynRed; 06-06-2007 at 09:15 PM..
dalailama is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-06-2007, 09:16 PM Re: css help for newbie
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
By a 'textbox' do you mean adding a form element text box or just a <div> with text inside it ?
__________________
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 06-07-2007, 01:15 AM Re: css help for newbie
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I have the same question. I'm also not completely clear on what you want to do. I'm thinking you want to have things so the map image is still there and then have text sitting on top of the image. Is that right?

If you could describe a little more what you're looking to do I'm sure we could help.

Making the size of the h1 text is fairly simple. The css might look like:

h1 {font-size:12px}

or

h1 {font-size:0.75em}

The size I picked is arbitrary and you could use any size you want until it looks the way you want.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 06-07-2007, 06:08 AM Re: css help for newbie
Novice Talker

Posts: 9
Trades: 0
hi and thank you for your replies!

I am talking about a div with text inside, but I want to completely control it with css. I want to be able to put the code in the top of the source code due to SEO-reasons since the whole purpose of this text is to be able to repeat some of my most important key-words.

basically,

1. I want to have text with a frame around it where the map is now.

2. I want to be able to set the border color, thickness aswell as the font color

3. I want to be able to use h1 and h2 within the text but I want it to be smaller than it usually are.

4. I want to use overflow (is that the correct name?) so that all different webbrowsers can handle the size of the text contra borders properly

5. I want to be able to handle the size of the border

6. I want to position the text in the frame exactly where I want it, i.e. just where the map is now.

Thanks a ton for helping me out, I really appreciate it!
dalailama is offline
Reply With Quote
View Public Profile
 
Old 06-07-2007, 01:09 PM Re: css help for newbie
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
1. Create a div and put a border around it, any color and width you choose.

<div id="textFrame"></div>
#textFrame{
border: 2px solid #666666; /*gives you a 2px wide gray "frame" */
width: xxxxpx;
color: #000000; /* sets font color inside the div */
float:left; /* to position the frame */
margin: 20px 10px 10px 120px; /*sets top, right, bottom and left margins to put the frame where you want it to be. Adjust as needed.

To squash an IE bug that will double the floated margin, add:
display: inline; - put this in a separate css file for IE only and call it using conditional comments.

For the text inside the box:
#textFrame p{
padding: 5px 5px 5px 5px; /*makes space around the paragraphs inside the div - adjust as needed */

Your HTML would look like:
<div id="textFrame">
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<p>blah blah blah</p>
<p>blah blah blah</p>
</div>

You style headings like anything else:
h1{
font-size: 120%;
color: green;
font-style: bold;
} -- change as desired.
__________________
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 06-07-2007, 01:13 PM Re: css help for newbie
Novice Talker

Posts: 9
Trades: 0
Wonderful!!!!! Thanks a lot!!!
dalailama is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to css help for newbie
 

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