1 reply [Last post]
lady
Offline
newbie
Last seen: 16 years 36 weeks ago
Joined: 2004-03-15
Posts: 1
Points: 0

I have a problem with the text in a <div> section. Here is the url: http://www.dikemarkrideskole.no/dike/?q=rideskolehester .I'm talking about the text beside the two pictures of the horse "Tiki". I want the text in the absolute middle. I also want to get rid of the gap under the pictures between the pictures and the border. Can anybody help me?

Here is the css code for the html-code:

.overskrift_rideskolehester
{
width: 640px;
font-size: 13px;
border: 2px #000;
border-style: solid solid none solid;
background-color: #8ABDF4;
margin-left: 15px;
font-weight: bold;
}

.info_rideskolehester
{
width: 640px;
height: 133px;
font-size: 12px;
border: 2px solid #000;
margin-left: 15px;
}

.float_left_rideskolehester
{
float: left;
}

.15pxright
{
text-align: right;
margin-right: 15px;
}

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 2 years 3 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

problems with text in &lt;div&gt; section

Hi

That link wouldn't work, so I wen to the main page and followed the link. Funny how english-based word filters take out innocent words in other languages!

Anyway, you need 3 div's next to each other. I, and others, posted ways to do it here:

http://www.csscreator.com/css-node/

My way was longer but more cross-browser friendly, as I recall.

Trevor