SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Enthusiast Telemakhos's Avatar
    Join Date
    Nov 2003
    Location
    wherever
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    quick CSS question

    PHP Code:
    img.main     {
        
    border7px solid #000;
        
    text-aligncenter;
        } 
    I am trying to get this to have the images with this class be centered on the page, but I am not sure what the correct command is to center it.

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,215
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    declare text-align:center for the container of the img, not the img itself
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Enthusiast Telemakhos's Avatar
    Join Date
    Nov 2003
    Location
    wherever
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

  4. #4
    SitePoint Enthusiast Telemakhos's Avatar
    Join Date
    Nov 2003
    Location
    wherever
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's not working...

    My CSS: www.elivy.com/elivy.css

  5. #5
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,215
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    the css by itself does not help me

    what is the url of the page?

  6. #6
    SitePoint Enthusiast Telemakhos's Avatar
    Join Date
    Nov 2003
    Location
    wherever
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    www.elivy.com is the template (or rather www.elivy.com/index.php) and all the pages are in the www.elivy.com/pages/ folder.

  7. #7
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,215
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    looks to me like it works just fine

    what exactly is the problem again?

    rudy

  8. #8
    SitePoint Enthusiast Telemakhos's Avatar
    Join Date
    Nov 2003
    Location
    wherever
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I want the pictures in the content area to be centered.

  9. #9
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,215
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    they are already
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  10. #10
    SitePoint Enthusiast Telemakhos's Avatar
    Join Date
    Nov 2003
    Location
    wherever
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Crap, I don't think my browser was loading the new style sheet. Thanks!

  11. #11
    100% Windoze-free earther's Avatar
    Join Date
    Feb 2003
    Location
    Linuxland
    Posts
    2,788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Telemakhos
    Crap, I don't think my browser was loading the new style sheet. Thanks!
    Always remember to refresh after uploading.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •