I am trying to make the numbers in this image hoverable, so on mouseenter on each yellow circled number, a card with some info appears, as shown.
All of the numbers (except for "1") are embedded in the image. I have made "1" absolute, with % values on bottom and left, so as the image shrinks and grows (responsive to screen width), the "1" loses it's position slightly.
Are there any more ways to do this which are much more accurate? Thanks!
Related
I am working on this program - VB. net and there is something I really don't understand it and I am really struggling with it.
The requirements of the program is when it comes to Form Resize Event, I have to do the following:
a.The three buttons are always aligned on the top without any space between. As a group, they are
always horizontally centered on the form.
b. The two labels are always aligned on top, so are the two textboxes.
c. Each label is left aligned with the textbox below it, and the space between a label and the textbox
below it is always 10.
d. When the form is resized, the bottom margin (the space below the buttons), the middle margin
(the space between the textboxes and buttons), and the top margin (the space above the labels)
are the same.
e. The left margin (the space to the left of the input textbox) is the same as the right margin (the
space to the right of the square root textbox). The space between the two textboxes is half of the
left/right margin.
Would anyone be able to explain to me and give me some examples please?
Thank you
I am trying to implement like word cloud in my app.
The image shown is like word cloud with left alignment.
What I did was, for placing the buttons I am checking whether the width of the text is greater than total width of the screen, if it is greater place the button in next row i.e increment the y position, if it is not just place the buttons. Everything is working fine. But what I want now is , i want to move the buttons alignment, like, I want to start the first button from center of the screen. Please help me to do this...
i have some picture which is 675x503. I would like to make more width on it and let's say to 1024 and in height to 400. How to do that without cutting my image and keep quality? I just would like to have this image on my website top. I got photoshop 6. I tried with Image->image size but its not what i need.
If you don't want to cut the picture at all, this will distort the image due to different height and width ratios. If this is not an issue, you could simply hit ctrl(or cmd)+t when the layer with the picture is selected. It will let you resize and rotate the entire image. There is also an option in the Image -> Image Size menu called "Bicubic Sharper", found in the drop-down list at the bottom of the menu(Photoshop CS6). It's meant for image reduction and should also solve your problem.
In my app I'm using a scrolling canvas composed of equally sized cells.
The number of rows is unlimited, but the number of columns is fixed to 13.
At anyone time, I have exactly 7 cells fitting the width of the view.
I wrote my own tiling UIScrollView and everything is fine and works fine except for one thing:
I want to enable "paging" on the cell boundary, not on the "page" boundary.
In other words I want the horizontal scrolling to move no more than "one cell at a time". This is a usability issue.
In a standard UIScrollView with pagingEnabled=YES, there is some inertia when moving from one page to the next, but then the page is defined as having the full width of the view. I want to define the notion of page as 1/7 of the view width, such that I get the same kind of inertia when moving the display from cells 1-7 to cells 2-8, to cells 3-9, etc...
How would I go about that?
I found this and this, but this a related but different problem.
"Try making your scrollview less than the size of the screen (width-wise), but uncheck the 'Clip Subviews' checkbox in IB."
More info here.
I'm using vb.net to make a screen saver.
I want my label where the text shows to always be centered no matter what screen size it is.
is there a way to get the screen resolution of the current monitor?
if i can get that then i can calculate the middle and set my label there.
Stretch the label to the whole width of the form and dock/anchor to left and right side within the label parameters. This will center your label whatever the size of the form.