简体   繁体   中英

wrapped captcha control in a p tag, how to shift it to the right?

wrapped captcha control in ap tag, how to shift it to the right about 50 px?

I am using reCaptcha using the .net control. 我正在使用.net控件使用reCaptcha。 My input elements are to the right of the page by about 50 px.

My repactha is rendering left aligned (all the way to the left, so the alignment is off when compared to my other input fields).

#foo { margin-left: 50px } 

一般问题,一般答案:)

Did you try setting the style to a 50 pixel padding?

<p style="padding-left: 50px;"> ... </p>

If that doesn't work, you can always isert a 50 pixel image before the control.

Your question is really vague. I suppose the captcha is implemented using an image. In that case you could use CSS.

#captcha {
    position:relative;
    left:50px; /* moves the element 50px to the right */
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM