HTML help

by 7 replies
8
Whats the code for moving text or banner to the right? Right now its all the way on the way, I want to move it something like 30% to the right...
#website design #html
  • Are you try g to move it to the right of some text or jus in general? And are you using some kind of HTML builder or just plain HTML code?
  • Hi - You can use align right but easier to create a borderless table, with rows and columns and then place image in one of the cells.... regards Allen
    • [1] reply
    • <p align="right">whatever content u want aligned</p>
  • Its actually a search bar that im trying to move, about 40% or so to the right. Right now its all the way on the way. I know u can do it through CSS somehow, but cant you do it through html too?
  • With HTML you cane use like this <p align="left"> or else do with CSS it will be best solution for your problem...
  • I agree - it is betta to start learnin CSS from the begining
  • You could embed it into a span and then add some margin

    <span style="text-align:right; margin-right: 30%;>Your content goes here</span>
    or just use a left margin:
    <span style="margin-left: 70%;>Your content goes here</span>

    instead of % you can use px
    that makes it more precise and is a fix value instead of the fluid %

    alternatively you could use divs but I think this might get too complicated for the beginning if you are just starting out with html

Next Topics on Trending Feed

  • 8

    Whats the code for moving text or banner to the right? Right now its all the way on the way, I want to move it something like 30% to the right...