HighDots Forums  

help needed Css img tag

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss help needed Css img tag in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
wildnis
 
Posts: n/a

Default help needed Css img tag - 11-04-2004 , 06:18 PM






Hi,

I have the following styles applied and would like to position the img
centered inside my main content (now it is positioned left inside the
main content- tried everything I know - any ideas??
Thanks


#maincontent {
background-color: #F5F5F5;
border: 1px #000000 solid;
margin-left: 170px;
margin-right: 220px;
color: #333333;
padding-top: 20px;
padding-left: 20px;
padding-bottom: 20px;
padding-right: 20px;
}

#maincontent img {
border: thin #333333 solid;
}

Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: help needed Css img tag - 11-04-2004 , 06:27 PM






On 4 Nov 2004 15:18:31 -0800, wildnis <rolf (AT) hickerphoto (DOT) com> wrote:

Quote:
Hi,

I have the following styles applied and would like to position the img
centered inside my main content (now it is positioned left inside the
main content- tried everything I know - any ideas??
Thanks
Do you want content to either side? Hope not, that's harder.

CSS:
..centerimg {text-align: center;}

HTML
<div class="centerimg"><img ... ></div>



Reply With Quote
  #3  
Old   
Hal Rosser
 
Posts: n/a

Default Re: help needed Css img tag - 11-04-2004 , 08:19 PM




"wildnis" <rolf (AT) hickerphoto (DOT) com> wrote

Quote:
Hi,

I have the following styles applied and would like to position the img
centered inside my main content (now it is positioned left inside the
main content- tried everything I know - any ideas??
Thanks
Try using a table


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.781 / Virus Database: 527 - Release Date: 10/21/2004




Reply With Quote
  #4  
Old   
Neal
 
Posts: n/a

Default Re: help needed Css img tag - 11-04-2004 , 08:28 PM



On Thu, 4 Nov 2004 20:19:24 -0500, Hal Rosser <hmrosser (AT) bellsouth (DOT) net>
wrote:

Quote:
Try using a table
Why are you giving this advice in a stylesheet newsgroup? Please stop.


Reply With Quote
  #5  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: help needed Css img tag - 11-05-2004 , 04:20 AM



On Thu, 4 Nov 2004, Hal Rosser wrote:

Quote:
Try using a table
^^^

Why would it be necessary to "try" - don't you have any confidence in
the results?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.