HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
content box picture, and margin/padding?
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
quartzy



Joined: 26 Dec 2007
Posts: 400

PostPosted: Thu May 29, 2008 3:02 pm     content box picture, and margin/padding? Reply with quote

I have a content box, and whatever I do to it, the text still stays on the left, it does not sit in the middle like it should.
Code:
.box{background-image: url('images/boxtext.jpg');
width:300px;height:50px;background-position:50%;background-repeat: no-repeat;padding:40px;margin-left:40px;}
can anyone help with this?
the html if you find it useful is this
Code:
<br><p class="box"><br>
      Return form to Byte Size Office
<img class="envelope" alt="envelope icon" src="images/emailicon.gif"></p>
quartzy



Joined: 26 Dec 2007
Posts: 400

PostPosted: Fri May 30, 2008 2:10 am     re Reply with quote

Ok all I found a way to get it to work. Had some part of a script in the code, mucking it all up.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial