4 Replies - 775 Views - Last Post: 28 June 2010 - 09:59 AM

#1 Daily.matters  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 20-November 09

CSS text/position problem

Posted 28 June 2010 - 07:46 AM

Hello everyone.

I'm having a problem with my CSS, namely in the text... and i think the problem resides on the CSS position property.
My problem is the following, i have a DIV that encapsules some text. This is the CSS on that DIV:

#content_text{
	position: absolute;
	top: 55px;
	left: 175px;
	right: 700px;
	margin-top: 0px;
 	line-height: 14px; 
}


Everything is allright when i open thw page, but when i try to resize the page, it will resize the text too, ad i want the text to be fixed.
I attached two images so you can see what's happening.

Is it because i'm using "position: absolute" ??? I don't know why this is happening. Can someone help me ?

Thx in advance, Cláudio

Attached image(s)

  • Attached Image
  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: CSS text/position problem

#2 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 5936
  • View blog
  • Posts: 10,346
  • Joined: 28-September 07

Re: CSS text/position problem

Posted 28 June 2010 - 09:24 AM

It would likely help to see the HTML involved as well.
Was This Post Helpful? 0
  • +
  • -

#3 Daily.matters  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 20-November 09

Re: CSS text/position problem

Posted 28 June 2010 - 09:34 AM

Yep, here it goes:

	<div id="content_text">	
	<p>Lorem ipsum...</p>
	<p>Lorem ipsum...<br /> Lorem ipsum...</p>
	<img src="images/evan_profile.jpg">
	</div>



This part of the code is a simple DIV inside the body, it's not inheriting from anywhere.

Do you want to see the rest of the HTML on it ???
Was This Post Helpful? 0
  • +
  • -

#4 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 5936
  • View blog
  • Posts: 10,346
  • Joined: 28-September 07

Re: CSS text/position problem

Posted 28 June 2010 - 09:53 AM

Try setting a width for the content_text div.
Was This Post Helpful? 1
  • +
  • -

#5 Daily.matters  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 42
  • Joined: 20-November 09

Re: CSS text/position problem

Posted 28 June 2010 - 09:59 AM

It's always something really obvious that our eyes can't see ;) CSS have this effect on me... after looking at it for a day i stop seeing the obvious things.

Thx a lot, it's working now !
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1