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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Div problem. Need help please!
Old 07-24-2009, 11:13 PM Div problem. Need help please!
Junior Talker

Posts: 2
Trades: 0
Website

Website Files (if needed)



I'm making a website for my web design class. I've run into an annoying problem. It seems this div container "blocks" me from typing any text under the image. How do I fix this?
stanfoo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-25-2009, 09:01 AM Re: Div problem. Need help please!
Banned

Posts: 315
Name: Doug
Trades: 1
So don't put the text in that container div.
Put it in a new Div under the div that contains the picture.

Pay attention in class!
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-25-2009, 09:51 AM Re: Div problem. Need help please!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You have given the div a FIXED height. GOOD browsers (meaning NOT IE) will obey that fixed height. You can type in all the text you want, but it's not going to stretch the div - which IE6 (and below) does incorrectly.

If you want to add more text to that div, remove the fixed height !
__________________
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 07-25-2009, 11:28 AM Re: Div problem. Need help please!
Banned

Posts: 315
Name: Doug
Trades: 1
He used a fixed height to keep the picture in check.

He needs to separate thetext to it's own Div world.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-25-2009, 02:21 PM Re: Div problem. Need help please!
Junior Talker

Posts: 2
Trades: 0
I tried doing my own div but I can't do it correctly. Can someone show me how to do it?
stanfoo is offline
Reply With Quote
View Public Profile
 
Old 07-25-2009, 08:05 PM Re: Div problem. Need help please!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
He used a fixed height to keep the picture in check.
Which I understand, but since he's not stretching the picture, what difference does it make ?? The picture size won't change.

Depending on what he wants to do, it may not be necessary to add another div just for text, and adding divs willy-nilly 'just because' isn't a good practice.

Stanfoo, to add another div, just do this:
Quote:
<div style="position:relative; ">
<div id="imageContainer">
<img style="display: block; opacity: 0.95;"
src="images/bookmark_1.png" />

<img src="images/bookmark_2.png" />
<img src="images/bookmark_3.png" />
</div>
<div class="textContent">
<p>put your text here</p>
</div>

</div>
In your CSS, define the class for textContent to format the text in whatever way you need it, such as:

Code:
.textContent{
font-size: .75em; /*equal to 12px*/
color: blue;
line-height: 1.25em; 
}
__________________
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 07-25-2009, 10:56 PM Re: Div problem. Need help please!
Banned

Posts: 315
Name: Doug
Trades: 1
I'm curious LnR, is that method the Willy Method or the Nilly method of adding another DIV.

Also, you should tell him that he ONLY wants to place a bunch of formatting in the CLASS of that div if he wants ALL his text to look the same.

If he needs pieces within the text to look differently, you'd better refer him to the documentation on inheretance and/or the abilities of inline CSS Style tags or the instances where he might want to use multiple DIVS for various paragraphs.
And the idiosyncracies he will encounter if he happens to try to use a column layout.

Plus since he is a total newbie at this, you might also want to explain to him that
/* equal to 12px*/ is a comment that does nothing to the layout of his page
and does not need to be included for the code to work properly.

We all just jumped this person weeks ahead of where his class probably is.

The joys of HTML and CSS.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-27-2009, 10:44 AM Re: Div problem. Need help please!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
you should tell him that he ONLY wants to place a bunch of formatting in the CLASS of that div if he wants ALL his text to look the same.
Inside THAT div only !!! It was an EXAMPLE. He's taking a class, he should be learning the rest!
__________________
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
 
Reply     « Reply to Div problem. Need help please!
 

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