Jump to content

Resizeable Comment Box Size

Recommended Posts

I was browsing around and noticed some sites with comments have a resizable background image comment box, how do you do it?For example:bam.jpgThe white box with round edges it's something like what I'm trying to do (a comics baloon) but I don't have a clue on how to (besides using multiple images with dif. sizes and maybe checking how many rows the comment has and then display the proper image? I think it's not, there should be something more flexible...).

Link to post
Share on other sites

Hard to tell from that picture, its a bit blurry.But you can do something quite simple, and give the <p></p> tags that surround the comments a background colour. That way no small or large amount of text will be too small or big, the colour will fill all the background of the text.If you want curvy corners, theres several ways of going about, theres pure CSS options, some use Javascript, some use Javascript libraries, some use images, some use a mixture of all of those.Have a search on Google for 'rounded corners css' and see which one is best suited for your needs. Either way, PHP isnt needed for here, unless your pulling the comments from the database, but thats got nothing to do with how it looks on the page, thats down to simple HTML and CSS.:)

Edited by real_illusions
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...