Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
Is there a way I can get the NW div to click to google?
html,
body {
height: 100%;
margin: 0;
padding: 0
}
div {
position: fixed;
width: 50%;
height: 50%
}
#NW {
top: 0;
left: 0;
background: orange
}
#NE {
top: 0;
left: 50%;
background: blue
}
#SW {
top: 50%;
left: 0;
background: green
}
#SE {
top: 50%;
left: 50%;
background: red
}
<a href="https://www.google.com">
<div id="NW"></div>
</a>
<a href="https://www.google.com">
<div id="NE"></div>
</a>
<a href="https://www.google.com">
<div id="SE"></div>
</a>
<a href="https://www.google.com">
<div id="SW"></div>
</a>
Thanks
On my systems (Safari on IOS 14; Edge, Chrome, Firefox, IE11 on Windows10) clicking on a rectangle takes me to the google site if I run the code direct.
If I run it through the the Stackoverflow snippet system though it does not, and that is because the snippet system uses an iframe to run the user's code and google doesn't allow itself to be run in an iframe.
It may be useful to have details of the system and browser and any other contextual stuff (like how is the code embedded in other code?) which may cause it not to function in your system.
Meanwhile it could be worth trying to swap the positioning of the anchor element by making that have the fixed position, top, left and dimensions of its child div so that it is forced to take up non-null space itself and see if that removes the problem.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
#wb_element_instance32 {
top: 0px;
left: 0px;
min-width: 1200px;
width: 1200px;
min-height: 571px;
height: 571px;
display: block;
z-index: 9;
}
#wb_element_instance32 img {
width: 1200px;
height: 571px;
display: block;
position: static;
left: 0px;
top: 0px;
}
I wrote this code in CSS for this object:
<div class="wb_cont_inner">
<div id="wb_element_instance32" class="wb_element wb_element_picture" data-plugin="Picture" title="">
<img alt="" src="gallery_gen/e9a807c8fc4b718061846b1746d4d62e_1874x891.71166666667.jpg" data-original-width="1874" data-original-height="891">
</div>
<div id="wb_element_instance33" class="wb_element wb_text_element" data-plugin="TextArea" style=" line-height: normal;">
<h2 class="wb-stl-heading2">
<span style="color:rgba(68,69,64,1);">
<strong>Keltaisen talon terapiatila</strong>
</span>
</h2>
</div>
For some reasons, when I browse that page the size of the picture is 1200x800. The files with code are stored on the cloud of a web hosting firm.
Could you please tell me why this could be happening?
If I inspect the page, it turns out that the browser has some CSS file where the size of the picture is set to be 1200x800. Otherwise, the code is identical.
Try making the css style important. Then your style will prioritize.
ex:
#wb_element_instance32 img { width: 1200px; } !important
Although your question is so mis understood, I guess there is a extension override css and effect your style.
Try to use incognito mode ( Windows、Linux \Chromebook :Ctrl+Shift+N. Mac: Command+Shift+N.) to open your file, and see if it goes well.
You can click here to find source of the css, attention the css name .
You can find the http request in Network base on the css name,
find extension name
like chrome-extension://ikhdkkncnoglghljlkmcimlnlhkeamad/normalize.css
open chrome://extensions/ in chrome
find the extension
copy extension name into search input.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am making a website with a slide type layout. Currently, I am working on the following two slides:
and
I want to have a button on each slide (like in slide 1).
I have applied the following rules to the button:
position: absolute;
bottom: 5%;
I have two buttons : "Know me" and "My skills".
Currently, both buttons are overlapping (that's why you can't see the "Know me" button).
What rules can I apply so that both buttons appear at the same position in their respective slides?
Elements with position: absolute are located relative their closest parent element with position: relative. To have your buttons appear in their relevant slide frames be sure to assign position: relative to each frame.
.slide {
height: 80px;
width: 200px;
position: relative;
}
button {
position: absolute;
bottom: 4px;
}
#slide-1 {
background-color: red;
}
#slide-2 {
background-color: green;
}
<div id="slide-1" class="slide">
<button type="button">Button 1</ button>
</div>
<div id="slide-2" class="slide">
<button type="button">Button 2</ button>
</div>
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have a weird problem,
My main page (Only) is showing long empty space under page footer and this happens when I use Google Chrome only.
IE, Firefox working without any problems.
PS :
1 - this weird space disappears from Google Chrome when i turn my homepage to static content page.
2 - I've tried to disable all plugins but still have the same problem
So how to solve this problem.?
Site URL
The problem seems to be with the .screen-reader-text class inside each article which is keeping the items inside the main page flow.
Try updating the css to:
.says, .screen-reader-text {
position: absolute;
left: 0;
top: 0;
width: 1px;
height: 1px;
overflow: hidden;
}
Just keep in mind that this will also affect the .says class. If needed, just move .screen-reader-text into its own class.
.says {
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
overflow: hidden;
position: absolute !important;
width: 1px;
}
.screen-reader-text {
position: absolute;
left: 0;
top: 0;
width: 1px;
height: 1px;
overflow: hidden;
}
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have used upload file (type=file) to upload a file. I want to change the button to text. Since the user will using either Google chrome or IE. So I have to consider both browsers. I would prefer simple code.
Here is my code (I'm using multiple upload files)
<td><input type="file" name="picture[]" id="picture" ></td>
thanks
If I understand right, you're asking about styling input tags with type="file". This is pretty difficult, but what I usually do is wrap the input, and include another tag that will show the desired style. I then position the input tag on top (so that it can still be clicked), but make it transparent so the underlying style shows through.
Something like:
HTML:
<div class="uploadWrapper">
<p>Click to choose file</p>
<input type="file" name = "filedata" size="100" />
</div>
CSS:
.uploadWrapper {
overflow: hidden;
position: relative;
height: 25px;
width: 250px;
background: rgb(10,100,210);
}
.uploadWrapper input {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
}
.uploadWrapper p {
margin: 0 10px;
position: absolute;
line-height: 25px;
}
http://jsfiddle.net/BYossarian/NVr6t/
"Each browser has it's own rendition of the control and as such you can't change either the test or the orientation of the control."
- Original Source
However, I believe you can be a bit tricky and modify the button with CSS.
#picture {
text-decoration: none;
/* etc... */
}
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Please check this link
The left panel text goes hidden under the center picture if I re-size the browser window.
How do I fix it?
Set .ac-wrapper h2 30% instead of 50%
.ac-wrapper h2 {
width: 30%;
}
EDITED
html
<div class="ac-device">
<h2 style="color:#888888">Logical & analytical. <span>Argues till someone <br>just walks away!</span></h2>
<img src="images/screen1.jpg">
<h3 class="ac-title">Not enough of an artist to work upon your imagination. Prefers to do stuff freely. Some may not like that, but that's the way I am!</h3>
</div>
CSS
.ac-wrapper h2 {
top: 20%;
width: 100%;
right: 100%;
position: absolute;
font-weight: 300;
font-size: 4em;
text-align: center;
padding: 0;
}
I'm looking at Chrome Dev Tools and I don't actually see where at any point styles from within a media query are being loaded. The obvious result you want is that right now that left panel is
position: absolute;
width: 50%;
and of course at this resolution you want that width to be something smaller. You can change the styles as your title suggests with a media query, but none's firing. Do you mind posting your relevant CSS to see why--if it exists--your mq isn't working?
Judging by the quality of your design I'm guessing you definitely know what a media query is, but just in case:
#media screen and (min-width: 1366px) {
id.class {
width: 40%; // or whatever
}
}